fix(MessageMentions): check guild exists before adding roles (#6313)

This commit is contained in:
ckohen
2021-08-06 06:07:31 -07:00
committed by GitHub
parent 52817fc414
commit 1200bba7bc
2 changed files with 12 additions and 12 deletions

View File

@@ -304,7 +304,7 @@ class Message extends Base {
}
if (data.referenced_message) {
this.channel?.messages._add(data.referenced_message);
this.channel?.messages._add({ guild_id: data.message_reference?.guild_id, ...data.referenced_message });
}
/**