Support Bots (maybe)

This commit is contained in:
March 7th
2022-06-17 13:34:42 +07:00
parent 57d839e8be
commit 2d044dceb4
2 changed files with 3 additions and 3 deletions

View File

@@ -532,7 +532,7 @@ class WebSocketShard extends EventEmitter {
this.emit(ShardEvents.ALL_READY, this.expectedGuilds);
},
hasGuildsIntent ? waitGuildTimeout : 0,
hasGuildsIntent && this.manager.client.user.bot ? waitGuildTimeout : 0,
).unref();
}