bug fixes

This commit is contained in:
Yusur 2025-01-17 10:55:17 +01:00
parent 6b88aff1e7
commit 4b8fa012da
3 changed files with 11 additions and 3 deletions

View file

@ -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);