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

@everyone mentions doesn't work properly #2285

Closed
2 tasks
flokol120 opened this issue Jan 22, 2018 · 1 comment
Closed
2 tasks

@everyone mentions doesn't work properly #2285

flokol120 opened this issue Jan 22, 2018 · 1 comment

Comments

@flokol120
Copy link

flokol120 commented Jan 22, 2018

Please describe the problem you are having in as much detail as possible:

If i try to send messages with @everyone mentions I get the following result:

@@everyone

It is also not highlighted like it should be. Am I doing something in the wrong way or is it a bug?

Include a reproducible code sample here, if possible:

channel.send("<@&355726997126643732>! " + connectedUser.nickname + " just connected!")

Further details:

  • discord.js version: 11.3.0
  • node.js version: 8.9.4
  • Operating system: Debian
  • Priority this issue should have – please be realistic and elaborate if possible: Low
  • I found this issue while running code on a user account
  • I have also tested the issue on latest master, commit hash:
@SpaceEEC
Copy link
Member

You mention everyone or here with the literal strings @everyone or @here, not a regular role mention.
This is not a bug, but a discord thing.

maduck added a commit to maduck/GoWDiscordTeamBot that referenced this issue Dec 10, 2020
long story: tried to mention @everyone in an embed, just to find out that this gets highlighted, but does not actually alert people. After some digging, seems that channel permissions need to be set. Also the bot has to start up with allowed_mentions set to include everyone. But even then it does not work. `message.guild.default_role.mention` produces output like `@@everyone` that just looks broken and does not work anywhere.
Long story short: only `message.guild.default_role` works, and only in a message of its own, without embeds.
Bug reports about that have been closed, because it's the stupid user's fault: discordjs/discord.js#1519
I don't even want to dive into other problems with embeds and mentioning: https://support.discord.com/hc/en-us/community/posts/360041823171-Mention-Support-in-Bot-Embeds

The final solution comes via the discord.js api bug report, where it gets explained not to use the proper mention, but just @everyone 🤦
discordjs/discord.js#2285
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants