#Need help registering application commands

1 messages · Page 1 of 1 (latest)

cosmic parcel
#

I'm trying to use slash commands but I'm getting this error when I start the bot.

random rune
#

Slash command method must have the first argument be of type InteractionContext.

//This will work
public async Task MyCoolSlashCommand(InteractionContext ctx, [Option] long myArgument){}
//This will NOT work
public async Task MyCoolSlashCommand([Option] long myArgument){}