Skip to content

Commit

Permalink
fix: handle bug with reply not acknowledged
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed May 2, 2024
1 parent ccb3367 commit 918b51b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/discord/commands/pdfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 918b51b

Please # to comment.