disagreement/docs/mentions.md
Slipstreamm 9237d12a24 docs(imports): Update import paths in documentation examples
Adjust examples to reflect the new top-level exposure of classes and enums, such as `Client`, `Permissions`, `Embed`, and `Button`, making imports simpler.
2025-06-14 18:44:04 -06:00

833 B

Controlling Mentions

The client exposes settings to control how mentions behave in outgoing messages.

Default Allowed Mentions

Use the allowed_mentions parameter of :class:disagreement.Client to set a default for all messages:

from disagreement import AllowedMentions, Client
client = Client(
    token="YOUR_TOKEN",
    allowed_mentions=AllowedMentions.none().to_dict(),
)

When Client.send_message or convenience methods like Message.reply and CommandContext.reply are called without an explicit allowed_mentions argument this value will be used.

AllowedMentions also provides the convenience methods AllowedMentions.none() and AllowedMentions.all() to quickly create common configurations.

Next Steps