Emoji Models#
- class interactions.api.models.emoji.Emoji(kwargs_dict=None, /, **other_kwargs)[Quellcode]#
A class objecting representing an emoji.
- Variablen:
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(guild_id, emoji_id, client)[Quellcode]#
Neu in Version 4.2.0.
Gets an emoji.
- async classmethod get_all_of_guild(guild_id, client)[Quellcode]#
Neu in Version 4.2.0.
Gets all emoji of a guild.
- async modify(guild_id, name=<interactions.MISSING>, roles=<interactions.MISSING>, reason=None)[Quellcode]#
Neu in Version 4.4.0.
Edits the Emoji in a guild.
- Parameter:
- Rückgabe:
The modified emoji object
- Rückgabetyp:
- async delete(guild_id, reason=None)[Quellcode]#
Neu in Version 4.2.0.
Deletes the emoji.