Skip to content

Commit 0d3c329

Browse files
committed
copy channel
1 parent e1f8325 commit 0d3c329

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Discord.C++/Interaction.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,18 @@ DiscordCPP::Interaction::Interaction(const Interaction& old)
3232
if (old.guild != nullptr) {
3333
guild = new Guild(*old.guild);
3434
}
35+
if (old.channel != nullptr) {
36+
channel = new Channel(*old.channel);
37+
}
3538
}
3639

3740
DiscordCPP::Interaction::~Interaction() {
3841
if (guild != nullptr) {
3942
delete guild;
4043
}
44+
if (channel != nullptr) {
45+
delete channel;
46+
}
4147
}
4248

4349
void DiscordCPP::Interaction::reply(const std::string& content, const bool tts) {

0 commit comments

Comments
 (0)