fix bug preventing registration of global commands

This commit is contained in:
Yusur 2025-04-19 18:47:22 +02:00
parent 51b55bad36
commit 84c779fcf4
2 changed files with 9 additions and 6 deletions

View file

@ -44,7 +44,7 @@ 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 guilds = (process.env.GUILD_IDS ?? '').trim().split(/[\s,;:]+/).filter(x => x.length > 0);
const rest = new REST({ version: '10' }).setToken(process.env.TOKEN);