Error handler doesn't seem to work; Error with the "previous" command #299
-
Hello! I'm trying to create my own little music bot using distube. I mostly use the example bot as a reference. Most of the commands seemed to work fine, but following commands cause the bot to crash (as far as I understand, this is because the error handler is not working):
Here's the messageCreate event handler, in a separate file Please ask for any other necessary info/code. I tried looking for existing solutions, but couldn't find any |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
await
or use.catch()
error
event is emitted when there is an error while playing music, not when using methods.