From c46d8aedf13a5db88944e7c637e3a66cbd9d4464 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Thu, 7 Jul 2022 19:54:28 +0300 Subject: [PATCH] global slash commands only on development --- 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 b582738..ae8f77e 100644 --- a/src/structure/client/Intercom.js +++ b/src/structure/client/Intercom.js @@ -28,7 +28,7 @@ class Intercom { .filter((c) => c._type === 'command' && c.slash) .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: 'guild', commands, clientId });