mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Catch all Promise Rejections
This commit is contained in:
@@ -190,4 +190,8 @@ client.once('ready', () => {
|
|||||||
client.user.setGame(";help | dragonfire535");
|
client.user.setGame(";help | dragonfire535");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
process.on('unhandledRejection', function(reason, p){
|
||||||
|
console.log("Possibly Unhandled Rejection at: Promise ", p, " reason: ", reason);
|
||||||
|
});
|
||||||
|
|
||||||
client.login(config.token);
|
client.login(config.token);
|
||||||
Reference in New Issue
Block a user