Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow URLs in input box #235

Open
Nixill opened this issue Aug 2, 2023 · 1 comment
Open

Allow URLs in input box #235

Nixill opened this issue Aug 2, 2023 · 1 comment
Labels
enhancement Improving existing functionality feature Adding new functionality

Comments

@Nixill
Copy link

Nixill commented Aug 2, 2023

Channels, forum posts, threads, and messages have direct links that are accessible without developer mode enabled. For messages, there is a right-click menu option labeled "Copy Message Link", and it's also accessible in the holding-shift button bar atop messages. For all the others, the option is just "Copy Link".

On mobile, message links are also available via sharing, but my discord client is woefully outdated so I don't know exactly what that looks like.

On Discord's web client, channel links are also available as the current address.

Those links look like one of these (snowflakes anonymized just in case):

  • For a channel, thread, or forum post: https://discord.com/channels/299000000000000000/1058000000000000000
  • For a message: https://discord.com/channels/1039000000000000000/1039000000000000000/1109000000000000000

If such a URL is pasted in the textbox, the snowflake should just be detected as the last section of the URL.

Perhaps the other snowflakes in the URL could be analyzed as well and displayed in a smaller font size? Note that the first snowflake, the guild ID, may instead be replaced with @me in a valid Discord URL when the channel is a DM or Group DM.

@vegeta897 vegeta897 added enhancement Improving existing functionality feature Adding new functionality labels Aug 2, 2023
@vegeta897
Copy link
Owner

Good request, thanks!

When multiple snowflakes are detected, ideally it would display them all, which is related to #157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality feature Adding new functionality
Projects
None yet
Development

No branches or pull requests

2 participants