Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

net-tech-
net-tech-1/8/2023
Namespace 'Command' has no exported member 'ChatInputInteraction'.

Hey there,

I'm following the guide at https://www.sapphirejs.dev/docs/Guide/getting-started/creating-a-basic-app-command, and I'm getting the error Namespace 'Command' has no exported member 'ChatInputInteraction'. on this line.
public async chatInputRun(interaction: Command.ChatInputInteraction)

Intellisense offers me autocomplete for Command.ChatInputCommandInteraction. Is this a mistake in the guide?
kaname-png
kaname-png1/8/2023
Outdated guide
kaname-png
kaname-png1/8/2023
Open pr

Solution Message

Ben855
Ben8551/8/2023
Yeah that was changed today in v4. You should use Command.ChatInputCommandInteraction
net-tech-
net-tech-1/8/2023
Alright. Opening a PR.
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy