global slash commands only on development

This commit is contained in:
Erik 2022-07-07 19:54:28 +03:00
parent 3b06edde70
commit c46d8aedf1
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -28,7 +28,7 @@ class Intercom {
.filter((c) => c._type === 'command' && c.slash) .filter((c) => c._type === 'command' && c.slash)
.map((c) => c.shape); .map((c) => c.shape);
if (process.env.NODE_ENV !== 'production') return this.send('commands', { type: 'guild', commands, clientId }); if (process.env.NODE_ENV === 'development') return this.send('commands', { type: 'guild', commands, clientId });
this.send('commands', { type: 'global', commands, clientId }); this.send('commands', { type: 'global', commands, clientId });
//this.send('commands', { type: 'guild', commands, clientId }); //this.send('commands', { type: 'guild', commands, clientId });