#Preventing people from pinging @everyone via a command

1 messages · Page 1 of 1 (latest)

outer iris
#

Previously used regex and added a zero width space between @ and everything. Would this work if I want the message to only mention the command caller?

allowed_mentions=AllowedMentions(users=[ctx.author_id])

merry gullBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

outer iris
#

okay that seems to block everything, even the author reply ping

outer iris
#

realized send isnt reply. i thought it worked the same because its showing the command in the same format as a reply. then i tried adding reply_to. no dice

twilit token
#

I also need help with this.

haughty kelp
#

if you want to send a message that replies to another message, you can do ctx.channel.send with reply_to. in this case if you use allowed_mentions=AllowedMentions(replied_user=True) it will only ping the user you replied to, not (for example) @everyone.