add support for discord:// protocols in buttons #3347
-
Description currently, if you try to create a button with a url, it has to use The idea is to support the discord:// protocol in buttons links It could be really useful if you could make a profile pop out of a button, link to a channel, or guide actions like opening the advanced tab of settings to activate developer mode. Alternatives Considered It is possible to use the links with Additional Details currently, trying to send a button with a discord:// scheme returns 400 : |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 27 replies
-
Also, please add support to the title url and author url in embeds :) |
Beta Was this translation helpful? Give feedback.
-
I'd love this, something similar to Steam's browser protocol. |
Beta Was this translation helpful? Give feedback.
-
Maybe it could also be added to the allowed hyperlink protocols? At the moment only |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I love this.
|
Beta Was this translation helpful? Give feedback.
-
Thanks, had no idea that worked but it does the trick. I guess it's still a bit of a hack though, and if it was officially supported it probably wouldn't open a pop up and could be handled entirely in the client (it uses a standard URL open so if you don't have the protocol set up e.g. on Linux it doesn't work). |
Beta Was this translation helpful? Give feedback.
-
Another thing to note, if this gets implemented, the client would need to not throw the user to the dms list when clicking any discord:// link that doesn't direct to a channel |
Beta Was this translation helpful? Give feedback.
-
Something like this would also be a good shortcut to running certain commands; consider something like |
Beta Was this translation helpful? Give feedback.
-
Support for |
Beta Was this translation helpful? Give feedback.
-
I think there are more protocols like
All of them require a prompt of course. |
Beta Was this translation helpful? Give feedback.
-
Why my |
Beta Was this translation helpful? Give feedback.
-
Will this feature come to mobile devices? |
Beta Was this translation helpful? Give feedback.
-
how to use? |
Beta Was this translation helpful? Give feedback.
-
I'm try to create button with Steam URI for lobby link and I can't because ...node_modules\discord.js\src\rest\RequestHandler.js:349
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Invalid Form Body
data.components[0].components[0].url: Scheme "steam" is not supported. Scheme must be one of ('http', 'https', 'discord'). What about to add some of these URI (or at least Steam, GitHub and all able to associate with Discord user from user's connections) ? |
Beta Was this translation helpful? Give feedback.
-
Even better alternative: Allow using any URI handler scheme in buttons. |
Beta Was this translation helpful? Give feedback.
-
Note that users will get the "may open an application on your computer" warning after clicking the link button when using the discord:// protocol. I understand this is for security reasons (there's no way to guarantee discord:// will link to the discord app), but it's a bit unfortunate that the user can see the URL filled with scary numbers unlike in Chrome for example which only opens a prompt. Also, for others in the future who stumbled upon this question, the URI for linking to a channel is this: |
Beta Was this translation helpful? Give feedback.
-
This still does not work in link markdown correct? |
Beta Was this translation helpful? Give feedback.
Support for
discord://
in buttons was just merged, and should be deployed to our API shortly.