global slash commands only on development
This commit is contained in:
parent
3b06edde70
commit
c46d8aedf1
@ -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 });
|
||||||
|
Loading…
Reference in New Issue
Block a user