ApplicationCommandRegistries.setDefaultGuildIds is not a function

I followed this page in the documentation but using the same code I get an error. https://www.sapphirejs.dev/docs/Guide/commands/application-commands/application-command-registry/globally-configuring-guildids
[nodemon] starting `node ./src/index.js`
F:\DiscordBot\ig-bot\src\index.js:95
ApplicationCommandRegistries.setDefaultGuildIds([global.guildId])
^

TypeError: ApplicationCommandRegistries.setDefaultGuildIds is not a function
at Object.<anonymous> (F:\DiscordBot\ig-bot\src\index.js:95:30)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
[nodemon] starting `node ./src/index.js`
F:\DiscordBot\ig-bot\src\index.js:95
ApplicationCommandRegistries.setDefaultGuildIds([global.guildId])
^

TypeError: ApplicationCommandRegistries.setDefaultGuildIds is not a function
at Object.<anonymous> (F:\DiscordBot\ig-bot\src\index.js:95:30)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Sapphire Framework
Globally configuring guildIds | Sapphire
Previously at Registering Chat Input Commands - guildIds we covered how to register single commands
7 Replies
Zaros
ZarosOP14mo ago
@Helpers bongoTap
DemonWayne
DemonWayne14mo ago
What version of framework you using?
TheOverWatcher
TheOverWatcher14mo ago
@Zaros
Zaros
ZarosOP14mo ago
4.5.3
Zaros
ZarosOP14mo ago
its working, thx !
Lioness100
Lioness10014mo ago
blobthumbsup
Want results from more Discord servers?
Add your server