Emoji Models#
- class interactions.api.models.emoji.Emoji(kwargs_dict=None, /, **other_kwargs)[source]#
A class objecting representing an emoji.
- Variables:
id (Optional[Snowflake]) – Emoji id
name (Optional[str]) – Emoji name.
roles (Optional[List[int]]) – Roles allowed to use this emoji
user (Optional[User]) – User that created this emoji
require_colons (Optional[bool]) – Status denoting of this emoji must be wrapped in colons
managed (Optional[bool]) – Status denoting if this emoji is managed (by an integration)
animated (Optional[bool]) – Status denoting if this emoji is animated
available (Optional[bool]) – Status denoting if this emoji can be used. (Can be false via server boosting)
- async classmethod get_all_of_guild(guild_id, client)[source]#
New in version 4.2.0.
Gets all emoji of a guild.
- async modify(guild_id, name=<interactions.MISSING>, roles=<interactions.MISSING>, reason=None)[source]#
New in version 4.4.0.
Edits the Emoji in a guild.
- Parameters:
- Returns:
The modified emoji object
- Return type: