aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-11-18 20:00:06 -0500
committerRapptz <[email protected]>2019-11-18 20:00:06 -0500
commitcb2115958977c02e8f8c727d8728a30c37fc9253 (patch)
treef5a02c7ef7a652fb92398a40d090ff48ba13d13e
parentManually trigger GC in cases of large deallocations. (diff)
downloaddiscord.py-cb2115958977c02e8f8c727d8728a30c37fc9253.tar.xz
discord.py-cb2115958977c02e8f8c727d8728a30c37fc9253.zip
Document that PartialEmoji.name can be None
-rw-r--r--discord/emoji.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/emoji.py b/discord/emoji.py
index 2429e0b2..6ef1b021 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`]