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 2 Replies
• 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.You have two options
You can:
Set the option
failIfNotExist: false
on the client creation or on the message payload