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
13
CHANGELOG.md
13
CHANGELOG.md
|
|
@ -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.
|
## 0.2.0 (March 23, 2025)
|
||||||
* Add `/coal` and `/version` commands.
|
|
||||||
|
* Removed references to terrorists in the Nassiryot Republic
|
||||||
|
* Add `/coal` and `/version` commands
|
||||||
|
|
||||||
## 0.1.0 (January 19, 2025)
|
## 0.1.0 (January 19, 2025)
|
||||||
|
|
||||||
* Initial commit.
|
* Initial commit
|
||||||
* Added `/wiki` and `/yroo` commands.
|
* Added `/wiki` and `/yroo` commands
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ if (process.env.GUILD_IDS === void 0){
|
||||||
console.warn('GUILD_IDS not set, registering commands globally');
|
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);
|
const rest = new REST({ version: '10' }).setToken(process.env.TOKEN);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue