How do interaction handlers pair up with commands
Hello! I'm trying to develop a little discord bot and I loved how complete the sapphire framework is. I've come across the interaction handlers section and tried to implement a command using a Select Menu one. The thing is, to trigger an interaction handler I first need to "make" the interaction through a command (like displaying a button). Let's say the command has a name param, how can I give the interaction-handler that information? Am I not using the right tool for what I'm trying to do?
5 Replies
Sapphire uses the same instructions for slash command options as discordjs. This is the link in the sapphire docs
https://discordjs.guide/slash-commands/parsing-options.html#command-options
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
What I'm asking is how to pass arguments to the interaction handler
Solution
does that help?
Yeah! Thanks