fix bug preventing registration of global commands
This commit is contained in:
parent
51b55bad36
commit
84c779fcf4
2 changed files with 9 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue