From 0042a54f95884f4da643b8241db41d6aa6ba1af9 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 28 Jul 2022 10:58:27 +0300 Subject: [PATCH] bugfix --- src/structure/client/wrappers/GuildWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/client/wrappers/GuildWrapper.js b/src/structure/client/wrappers/GuildWrapper.js index 45f9be3..f639570 100644 --- a/src/structure/client/wrappers/GuildWrapper.js +++ b/src/structure/client/wrappers/GuildWrapper.js @@ -72,7 +72,7 @@ class GuildWrapper { startedIn = await this.resolveChannel(startedIn); const pollChannel = await this.resolveChannel(channel); if (pollChannel) { - const msg = await pollChannel.messages.fetch(message); + const msg = await pollChannel.messages.fetch(message).catch(() => null); if (msg) { const { reactions } = msg; const reactionEmojis = questions.length ? PollReactions.Multi : PollReactions.Single;