Allow use of slash command mentions in link buttons #5190
Replies: 9 comments 6 replies
-
Possible duplicate of #4893 ? I agree. For the average Joe clicking buttons is easier (and it is for me too on a phone for example) than typing commands. |
Beta Was this translation helpful? Give feedback.
-
This would be so helpful for help commands and such so users can just click it. |
Beta Was this translation helpful? Give feedback.
-
This would make it so convenient if buttons could trigger a slash command |
Beta Was this translation helpful? Give feedback.
-
I did a rough mock-up of how this might look: And how it might look in the code, using a new "Command" button style": {
type: 2, // "Button" Component Type
style: 6, // "Command" Button Style (requires fields 'command_id' and 'command_name'),
label: 'Add to List',
command_id: '472091337469007488',
command_name: 'list add',
} |
Beta Was this translation helpful? Give feedback.
-
Instead of using buttons, you can mention the command in something, such as an embed, and it will work. I know this isn't the point of the discussion, but if someone is looking for an alternative right now, its available. |
Beta Was this translation helpful? Give feedback.
-
Do you mean a slash command of another bot? If not, how would this be different from just a regular button interaction? |
Beta Was this translation helpful? Give feedback.
-
This is a great idea. My bot has a slash command that runs a game and I would love a slash command button to add to the final winning message to prompt the user to start another game. Using a regular button interaction can't replace this because the game command may require args as mentioned above, but also because Discord collects slash command usage statistics to display the most popular ones on your bot's Discord profile on desktop, and on your bot's App Directory page if you have one. Using a regular button hooked up to a function would mean Discord wouldn't count those new games as command interactions, and thus the game in question would disappear from the top recommended commands on my bot's profile and app directory page meaning reduced visibility and discoverablity for new users. Having a button that can do the same thing as the command mention (paste it into your message input field) would be a massive win! I have servers who have played this game almost 50k times since inviting my bot. A button to launch a new game at the end of one would reduce friction and increase engagement across the board. This would be good for bot developers since bot engagement could grow, and also good for Discord since engaged users = more time spent on the platform. |
Beta Was this translation helpful? Give feedback.
-
i also want a user to be guided with buttons through subcommands/groups. |
Beta Was this translation helpful? Give feedback.
-
it would eliminate so many custom interaction handlers! |
Beta Was this translation helpful? Give feedback.
-
You should be able to use slash command mentions in a link button.
It would be a nice feature allowing one slash command to link to other slash commands.
Right now, link buttons only deal with URLs. While that is okay for most purposes, it would be nice if the link button was changed into something that can not just link to URLs, but can mention other things in bots (eg. commands).
Beta Was this translation helpful? Give feedback.
All reactions