aboutsummaryrefslogtreecommitdiff
path: root/discord/reaction.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-10 08:50:50 -0400
committerRapptz <[email protected]>2021-06-10 08:50:50 -0400
commit9181bf046b106b4e31680392509d4c3626c651b1 (patch)
tree0590b335dc275c8ca42a929eeac5d1de9bef97a4 /discord/reaction.py
parentType-Hint appinfo/team (diff)
downloaddiscord.py-9181bf046b106b4e31680392509d4c3626c651b1.tar.xz
discord.py-9181bf046b106b4e31680392509d4c3626c651b1.zip
Rename Reaction.custom_emoji to Reaction.is_custom_emoji
This legacy attribute was apparently never changed to be consistent with the rest of the library
Diffstat (limited to 'discord/reaction.py')
-rw-r--r--discord/reaction.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/discord/reaction.py b/discord/reaction.py
index d8829590..5764af4a 100644
--- a/discord/reaction.py
+++ b/discord/reaction.py
@@ -73,8 +73,7 @@ class Reaction:
self.count = data.get('count', 1)
self.me = data.get('me')
- @property
- def custom_emoji(self):
+ def is_custom_emoji(self):
""":class:`bool`: If this is a custom emoji."""
return not isinstance(self.emoji, str)
@@ -190,7 +189,7 @@ class Reaction:
if the member has left the guild.
"""
- if self.custom_emoji:
+ if not isinstance(self.emoji, str):
emoji = f'{self.emoji.name}:{self.emoji.id}'
else:
emoji = self.emoji