We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1f8325 commit 0d3c329Copy full SHA for 0d3c329
Discord.C++/Interaction.cpp
@@ -32,12 +32,18 @@ DiscordCPP::Interaction::Interaction(const Interaction& old)
32
if (old.guild != nullptr) {
33
guild = new Guild(*old.guild);
34
}
35
+ if (old.channel != nullptr) {
36
+ channel = new Channel(*old.channel);
37
+ }
38
39
40
DiscordCPP::Interaction::~Interaction() {
41
if (guild != nullptr) {
42
delete guild;
43
44
+ if (channel != nullptr) {
45
+ delete channel;
46
47
48
49
void DiscordCPP::Interaction::reply(const std::string& content, const bool tts) {
0 commit comments