only register commands on first shard

This commit is contained in:
Erik 2022-05-11 16:52:15 +03:00
parent 53b894aea1
commit 9240686aff
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -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();
});