diff --git a/discord/emoji.py b/discord/emoji.py index 2ab349f7f..617ef19b9 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -168,12 +168,14 @@ class Emoji: If this emoji is managed by a Twitch integration. guild_id: :class:`int` The guild ID the emoji belongs to. + available: :class:`bool` + Whether the emoji is available for use. user: Optional[:class:`User`] The user that created the emoji. This can only be retrieved using :meth:`Guild.fetch_emoji` and having the :attr:`~Permissions.manage_emojis` permission. """ __slots__ = ('require_colons', 'animated', 'managed', 'id', 'name', '_roles', 'guild_id', - '_state', 'user') + '_state', 'user', 'available') def __init__(self, *, guild, state, data): self.guild_id = guild.id @@ -186,6 +188,7 @@ class Emoji: self.id = int(emoji['id']) self.name = emoji['name'] self.animated = emoji.get('animated', False) + self.available = emoji.get('available', True) self._roles = utils.SnowflakeList(map(int, emoji.get('roles', []))) user = emoji.get('user') self.user = User(state=self._state, data=user) if user else None