From 9240686affd874599a1b7d293631574490955e6d Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 11 May 2022 16:52:15 +0300 Subject: [PATCH] only register commands on first shard --- src/structure/client/Intercom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/client/Intercom.js b/src/structure/client/Intercom.js index e9a2137..b582738 100644 --- a/src/structure/client/Intercom.js +++ b/src/structure/client/Intercom.js @@ -4,7 +4,7 @@ class Intercom { this.client = client; - if(client.singleton) { + if(client.singleton || client.shard.ids[0] === 0) { this.client.eventHooker.hook('built', () => { this._transportCommands(); });