From 0c0cbceb467fb25de330b11c63612118009b1e9b Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Fri, 4 Aug 2023 03:34:28 +0200 Subject: [PATCH] Fix uncatched await in execution catch block mitigates #11 --- src/execution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/execution.ts b/src/execution.ts index be0156b..57a5463 100644 --- a/src/execution.ts +++ b/src/execution.ts @@ -345,7 +345,7 @@ async function executeFromQueue(channel: string) { return executeFromQueue(channel); } - await requestReply( + requestReply( message, { embeds: [{ @@ -355,7 +355,7 @@ async function executeFromQueue(channel: string) { }, {allowedMentions: { repliedUser: false } }, { ephemeral: true }, - ); + ).catch (() => {/* GRACEFAIL: It's okay if we don't reply with an error */}); } channelQueue.shift();