This commit is contained in:
Erik 2022-07-28 10:58:27 +03:00
parent eca3f6f4fa
commit 0042a54f95
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -72,7 +72,7 @@ class GuildWrapper {
startedIn = await this.resolveChannel(startedIn); startedIn = await this.resolveChannel(startedIn);
const pollChannel = await this.resolveChannel(channel); const pollChannel = await this.resolveChannel(channel);
if (pollChannel) { if (pollChannel) {
const msg = await pollChannel.messages.fetch(message); const msg = await pollChannel.messages.fetch(message).catch(() => null);
if (msg) { if (msg) {
const { reactions } = msg; const { reactions } = msg;
const reactionEmojis = questions.length ? PollReactions.Multi : PollReactions.Single; const reactionEmojis = questions.length ? PollReactions.Multi : PollReactions.Single;