diff --git a/src/structures/Message.js b/src/structures/Message.js index 899241b..7c1d3d0 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -342,6 +342,8 @@ class Message extends Base { */ async react(reaction){ await this.client.pupPage.evaluate(async (messageId, reaction) => { + if (!messageId) { return undefined; } + const msg = await window.Store.Msg.get(messageId); await window.Store.sendReactionToMsg(msg, reaction); }, this.id._serialized, reaction);