typescript error

why am i getting these errors error TS2503: Cannot find namespace 'ChatInputCommand'. 9 public override registerApplicationCommands(registry: ChatInputCommand.Registry) { ~~~~ commands/ping.ts:9:57 - error TS4073: Parameter 'registry' of public method from exported class has or is using private name 'ChatInputCommand'. 9 public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
2 Replies
Favna
Favna2y ago
Looks like you're using Sapphire but you're asking questions in #discordjs-support. At any rate, this comes down to your own. code having something wrong. It's hard to say what from this. Maybe a missing import, or an outdated dependency. You can look at some other bots that use Sapphire for examples:
Spinel
Spinel2y ago
Discord bots that use @sapphire/framework v4 - Official Bot Examples ᴱ ᴰ ᴶˢ - Gemboard ᴱ ᴰ - Dragonite ᴱ ᴰ - Radon ᴱ ᴬ - Sapphire Application Commands Examples ᴱ - Archangel ᴱ ᴰ - Zeyr ᴰ ᴬ Discord bots that use @sapphire/framework v3 - Arima ᴱ - Nino ᴱ ᴰ - Operator ᴱ ᴬ ᴰ - Spectera ᴬ Discord bots that use @sapphire/framework v2 - Materia ᴱ - RTByte ᴱ ᴬ - Skyra ᴬ ᴰ - YliasDiscordBot ᴬ : Uses ESM (if not specified then uses CJS) : Advanced bot (if not specified it is a simple bot, or not graded) : Uses Docker in production ᴶˢ: Written in JavaScript. If not specified then the bot is written in TypeScript.
Want results from more Discord servers?
Add your server