prepping for staging env

This commit is contained in:
Erik 2022-04-22 17:26:13 +03:00
parent 7a71bdbfef
commit 5b64f3d538
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ class SlashCommandManager {
}
async guild(commands, { guilds = [], clientId }) {
if (!guilds.length) guilds = this.client._options.discord.slashCommands.developerGuilds;
const cmdHash = hash(commands);

View File

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