How to catch 'DiscordAPIError Unknown Message'

I recently realized that if you insta-delete a message command that bot reply with message.reply("something") bot will crash with error DiscordAPIError: Unknown Message and I dont know how to catch it, I tried with try and .catch(null); but doesnt work, someone can help me pls dogeHaHa
2 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
조아오
조아오3y ago
You have two options You can: Set the option failIfNotExist: false on the client creation or on the message payload
Want results from more Discord servers?
Add your server