#How to use subcommands with SlashCommand attribute?

1 messages · Page 1 of 1 (latest)

waxen raft
#

I've been looking at the documentation for subcommands in slash commands, but it uses SlashCommandBuilder, and I'm writing a bot that uses classes inheriting from InteractionModuleBase<IInteractionContext>, and the [SlashCommand("name", "desc")] attribute, how do I do subcommands with that attribute?

foggy jackal
#

Give your class the group attribute, then use slashcommand attributes on methods inside it