🟦error

The errorevent is triggered everytime there's a error-type message from the server.

bot.on('error', (err, raw = null) => {
    // Your code here.
});

Parameters

  • err(string) – Error message.

  • raw(string) – Raw message from the server.

Last updated