bug fixes
This commit is contained in:
parent
6b88aff1e7
commit
4b8fa012da
3 changed files with 11 additions and 3 deletions
|
|
@ -26,7 +26,11 @@ for (let command of commandList) {
|
|||
commands.push(command.data.toJSON());
|
||||
}
|
||||
|
||||
const guilds = process.env.GUILD_IDS.trim().split(/[\s,;]+/);
|
||||
if (process.env.GUILD_IDS === void 0){
|
||||
console.warn('GUILD_IDS not set, registering commands globally');
|
||||
}
|
||||
|
||||
const guilds = (process.env.GUILD_IDS ?? '').trim().split(/[\s,;]+/);
|
||||
|
||||
const rest = new REST({ version: '10' }).setToken(process.env.TOKEN);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue