Source code for discord.objects.emoji
from ..snowflake import Snowflake
from ..utils import Nullable, Optional
from ._base import BaseObject
[docs]
class Emoji(BaseObject):
animated: Optional[bool]
"""Whether this emoji is animated"""
available: Optional[bool]
"""Whether this emoji can be used, may be ``False`` due to loss of Server Boosts"""
id: Nullable[Snowflake]
"""Emoji ID"""
managed: Optional[bool]
"""Whether this emoji is managed"""
name: Nullable[str]
"""Emoji name; can be null only in reaction emoji objects"""
required_colons: Optional[bool]
"""Whether this emoji must be wrapped in colons"""
roles: Optional[list[Snowflake]]
"""Roles allowed to use this emoji"""