Source code for discohook.emoji

from typing import Optional

# noinspection PyShadowingBuiltins
[docs]class PartialEmoji: """ Represents a discord PartialEmoji object. Parameters ---------- name: :class:`str` The name of the emoji. id: :class:`str` The unique id of the emoji. animated: :class:`bool` Whether the emoji is animated. """ def __init__(self, *, name: Optional[str] = None, id: Optional[str] = None, animated: Optional[bool] = None): = name = id self.animated = animated def to_dict(self) -> dict: data = {"name":} if data["id"] = if self.animated: data["animated"] = self.animated return data