All tools / Messages

allowed_mentions builder

Build an allowed_mentions object, catch the parse versus users/roles conflict, and preview who a message would ping.

parse vs explicit ids

parse lists mention types to allow from the content. users and roles whitelist specific ids instead. Putting "users" in parse and also sending users[] is a validation error. An empty parse with no ids suppresses every ping while still rendering the mentions.

Related: Markdown and mention sanitizer · Message flags decoder