Mentions

discord_http.mentions module

class discord_http.mentions.AllowedMentions(*, everyone=True, users=True, roles=True, replied_user=True)

Bases: object

Parameters:
classmethod all() Self

Preset to allow all mentions.

Return type:

Self

classmethod none() Self

Preset to deny any mentions.

Return type:

Self

to_dict() dict

Representation of the AllowedMentions that is Discord API friendly.

Return type:

dict