Skip to content

Emoji

emoji

Dealing with emoji objects of the Notion API.

TO = TypeVar('TO', bound=TypedObject) module-attribute

BuiltInIcon(name: str, *, color: str = 'gray')

Built-in icon from Notion's icon gallery, identified by a name and color.

name may be an internal Notion icon name or the label shown in Notion's icon picker. Notion validates the name and color when the icon is written.

color: str property

Return the color of this built-in icon.

name: str property

Return the name of this built-in icon.

__repr__() -> str

__str__() -> str

CustomEmoji()

Custom emoji object which behaves like str.

id: UUID property

Return the ID of this custom emoji.

name: str property

Return the name of this custom emoji.

url: str property

Return the URL of this custom emoji.

__repr__() -> str

__str__() -> str

Emoji(emoji: str)

Unicode emoji object which behaves like str.

name: str property

Return the name of the emoji.

obj_ref = objs.EmojiObject.build(emoji) instance-attribute

__repr__() -> str

__str__() -> str

EmojiBase(*args: Any, **kwargs: Any)

Base class for emoji objects, which behave like str.

name: str abstractmethod property

Return the name of the emoji.

to_code: str property

Represent the emoji as :shortcode:, e.g. 😄

__eq__(other: Any) -> bool

__hash__() -> int