Slash Commands
Is there any easy way of adding slash commands to my bot?
(I already got a normal command parser but I don't wanna go through making /help commands and I'm pretty interested in modals.)
7 Replies
/execute command: string (or subcommand) arguments: string
Making it work properly might require some work tho
While you can’t make modals appear from legacy commands, you can send a message w/ a button that opens it
You don’t rly have to worry abt converting to slash commands unless ur bot is growing and will eventually require verificationno like
easy way to add full slash commands
You can use builders to make the command and rest package to deploy them
idk anything about builders
With dynamic command handlers, you usually have a data property that exports the SlashCommandBuilder
Then you can just read the command files, convert builders to json-serializable objects and deploy w/ rest