Discord · api · fg-0444

Discord bot that echoes user text pings @everyone or whole roles

If you see Bot message relaying user input notifies the entire server, the cause and the fix for Discord are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Bot message relaying user input notifies the entire serverRole mentions in quoted text ping every member of the roleSame text sent through a webhook or interaction does not ping
Cause
In regular bot messages every mention type, including @everyone, is parsed by default when the bot has the permission to use it. Interactions and webhooks parse only user mentions by default, which hides the problem in testing.
Fix
Pass allowed_mentions with an empty parse list on any message that contains text you did not write, and list specific user IDs only when a ping is intended.
Apply
await channel.send({ content: userText, allowedMentions: { parse: [] } });
Affected
Discord API v10 create message, as of 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun