diff --git a/src/execution.ts b/src/execution.ts index 32e4f1e..a755ec6 100644 --- a/src/execution.ts +++ b/src/execution.ts @@ -177,7 +177,7 @@ export async function queueRequest(request: apiRequest) { if (!canReplyToRequest(request)) return; - if (!(request instanceof DiscordApi.Message) && channelsRunning.get(request.channelId)?.length !== 0) { + if (!(request instanceof DiscordApi.Message) && channelsRunning.get(request.channelId) && channelsRunning.get(request.channelId)?.length !== 0) { requestReply( request as RequestMessage, { @@ -190,7 +190,7 @@ export async function queueRequest(request: apiRequest) { { ephemeral: true, }, - ) + ).catch(() => {/*GRACEFAIL: don't do anything*/}); return; }