From 918b51b129a10998b801c2e6d9be0c6d9dc063d4 Mon Sep 17 00:00:00 2001 From: Christian Landgren Date: Thu, 2 May 2024 11:36:31 +0200 Subject: [PATCH] fix: handle bug with reply not acknowledged --- src/discord/commands/pdfs.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/discord/commands/pdfs.ts b/src/discord/commands/pdfs.ts index aa8854eb..34628849 100644 --- a/src/discord/commands/pdfs.ts +++ b/src/discord/commands/pdfs.ts @@ -35,10 +35,8 @@ export default { return } - // await interaction.deferReply() // Acknowledge the command to prevent 'interaction failed' - const message = await interaction.followUp( - `Processing ${urls.length} PDFs...` - ) + //await interaction.deferReply() // Acknowledge the command to prevent 'interaction failed' + const message = await interaction.reply(`Processing ${urls.length} PDFs...`) urls.forEach(async (url) => { const thread = await (interaction.channel as TextChannel).threads.create({