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
ZarosOP15mo ago
@Helpers bongoTap
ApathyWay
ApathyWay15mo ago
What version of framework you using?
TheOverWatcher
TheOverWatcher15mo ago
@Zaros
Zaros
ZarosOP15mo ago
4.5.3
Zaros
ZarosOP15mo ago
its working, thx !
Lioness100
Lioness10015mo ago
blobthumbsup
Want results from more Discord servers?
Add your server