Editorial question18.8K views561 votes0 answers3,522 following
AI-generatedInteraction Reply Deletion Timeout Configuration When Bot Lacks Manage Messages Permission
When using Interaction.reply({ fetchReply: true }) followed by a setTimeout to delete the reply after a delay, the bot should ensure that the deletion attempt does not result in unhandled promise rejections when the bot lacks the Manage Messages permission. The current discord.js implementation provides no automatic permission check or cancellation mechanism