skyra-project / discord-components

Discord Webcomponents for real looking messages on the web
MIT License
243 stars 33 forks source link

request: Mention slash commands #287

Closed acollierr17 closed 1 year ago

acollierr17 commented 1 year ago

Is your feature request related to a problem? Please describe. The DiscordMention component has excellent options in regards to displaying mentions. However, with the rise of slash commands, the library is currently missing support to mention slash commands.

Describe the solution you'd like I would like to mention slash commands in messages just like I can with channels, roles, and users. Here's an example:

<DiscordMessages>
  <DiscordMessage profile="anthony">
    Get started today by running <DiscordMention type"command">/ping</DiscordMention>!
  </DiscordMessage>
</DiscordMessages/>

Describe alternatives you've considered A custom component, but I think this is a general feature that would fit more with a supported library solution.

Additional context

image

(screenshot taken directly in my Discord client)