fix bug preventing registration of global commands

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

View file

@ -1,12 +1,15 @@
## 0.2.1 (April 19, 2025)
## 0.2.0 (March 24, 2025)
* Fixed a bug preventing registration of global commands
* Removed references to terrorists in the Nassiryot Republic.
* Add `/coal` and `/version` commands.
## 0.2.0 (March 23, 2025)
* Removed references to terrorists in the Nassiryot Republic
* Add `/coal` and `/version` commands
## 0.1.0 (January 19, 2025)
* Initial commit.
* Added `/wiki` and `/yroo` commands.
* Initial commit
* Added `/wiki` and `/yroo` commands

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