Mentions

discord_http.mentions module

class discord_http.mentions.AllowedMentions(*, everyone: bool = True, users: bool | list[Snowflake | int] | None = True, roles: bool | list[Snowflake | int] | None = True, replied_user: bool = True)[source]

Bases: object

classmethod all() Self[source]

AllowedMentions: Preset to allow all mentions

classmethod none() Self[source]

AllowedMentions: Preset to deny any mentions

to_dict() dict[source]

dict: Representation of the AllowedMentions that is Discord API friendly