secondubly - Not sure if my googling is just insuf...
Not sure if my googling is just insufficient but is there a way to add multiple users as a parameter for a slash command? I know that a
User
option exists where you can supply a single user to a slash command but if I wanted someone using the command to supply multiple users, how would I do that? I've been googling but can't seem to find anything explaining how that works. (Not sure if this is a sapphire or discord specific question, please let me know if I need to move it)4 Replies
Discord API doesn't support repeated arguments (yet, they are aware of the feature request)
so the best you can do is add (optional) additional parameters
ah, all right then! Thank you for clearing that up for me
If you're using @sapphire/framework@pr-512 and discord.js@dev, you can also prompt the user with a "user select menu"
https://discord.com/developers/docs/interactions/message-components#select-menus
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
The example screenshot on the docs show a role select menu, but it's the same idea for the user counterpart