From cb2115958977c02e8f8c727d8728a30c37fc9253 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 18 Nov 2019 20:00:06 -0500 Subject: [PATCH] Document that PartialEmoji.name can be None --- discord/emoji.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/discord/emoji.py b/discord/emoji.py index 2429e0b2c..6ef1b0212 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -56,9 +56,10 @@ class PartialEmoji: Attributes ----------- - name: :class:`str` + name: Optional[:class:`str`] The custom emoji name, if applicable, or the unicode codepoint - of the non-custom emoji. + of the non-custom emoji. This can be ``None`` if the emoji + got deleted (e.g. removing a reaction with a deleted emoji). animated: :class:`bool` Whether the emoji is animated or not. id: Optional[:class:`int`]