Skip to content

Fix Message Link Embeds on @me guilds#2177

Closed
VillainsRule wants to merge 1 commit into
Vendicated:mainfrom
VillainsRule:main
Closed

Fix Message Link Embeds on @me guilds#2177
VillainsRule wants to merge 1 commit into
Vendicated:mainfrom
VillainsRule:main

Conversation

@VillainsRule
Copy link
Copy Markdown

this fixes bots such as Make a Quote attempting to use @me as a guild, which discord supports (for some reason).
my method for the guildID var was a bit hacky, but there seem to be strict const/let structures.

this is my first time contributing, so lmk if i did something wrong

@Vendicated
Copy link
Copy Markdown
Owner

Vendicated commented Feb 15, 2024

This makes no sense. @me is the "guild" id for private channels. links with @me point to messages in some private channel

if your link contains @me as guild id and the id of some guild channel, it is simply not a valid message link.

@Vendicated Vendicated closed this Feb 15, 2024
@Vendicated
Copy link
Copy Markdown
Owner

bc0a550

@VillainsRule
Copy link
Copy Markdown
Author

VillainsRule commented Feb 15, 2024

It makes no sense to me either, but it seems like if @me is the guild it searches for channels in existing ones.

https://discord.com/channels/GUILD_ID/456787654567876/45678754567656789 and https://discord.com/channels/@me/456787654567876/45678754567656789 have the same effect.

I checked, it does redirect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants