Last updated 4 days ago
The errorevent is triggered everytime there's a error-type message from the server.
error
err(string) – Error message.
err
raw(string) – Raw message from the server.
raw
bot.on('error', (err, raw = null) => { // Your code here. });