forked from Galactic/galactic-bot
prepping for staging env
This commit is contained in:
parent
7a71bdbfef
commit
5b64f3d538
@ -29,6 +29,7 @@ class SlashCommandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async guild(commands, { guilds = [], clientId }) {
|
async guild(commands, { guilds = [], clientId }) {
|
||||||
|
|
||||||
if (!guilds.length) guilds = this.client._options.discord.slashCommands.developerGuilds;
|
if (!guilds.length) guilds = this.client._options.discord.slashCommands.developerGuilds;
|
||||||
|
|
||||||
const cmdHash = hash(commands);
|
const cmdHash = hash(commands);
|
||||||
|
@ -27,10 +27,10 @@ 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 === '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: '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