diff --git a/src/structures/Message.js b/src/structures/Message.js index afb9ca7..cb1ad39 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -285,7 +285,7 @@ class Message extends Base { this.allowMultipleAnswers = Boolean(!data.pollSelectableOptionsCount); this.pollInvalidated = data.pollInvalidated; this.isSentCagPollCreation = data.isSentCagPollCreation; - this.messageSecret = Object.keys(data.messageSecret).map((key) => data.messageSecret[key]); + this.messageSecret = data.messageSecret ? Object.keys(data.messageSecret).map((key) => data.messageSecret[key]) : []; } return super._patch(data);