aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-02-10 15:46:00 -0500
committerRapptz <[email protected]>2017-02-10 16:43:33 -0500
commit0dac5e31392710fa76cdc72f4307cc3f3d7a429c (patch)
tree6e86f9c9b76bba4492db8acba8355c21b0eb35d7 /discord/state.py
parentFix NameError in GroupChannel. (diff)
downloaddiscord.py-0dac5e31392710fa76cdc72f4307cc3f3d7a429c.tar.xz
discord.py-0dac5e31392710fa76cdc72f4307cc3f3d7a429c.zip
Add Client.emojis to get all emojis.
This removes the older get_all_emojis generator.
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py
index 5a10a185..2d02da60 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -161,6 +161,10 @@ class ConnectionState:
self._guilds.pop(guild.id, None)
@property
+ def emojis(self):
+ return list(self._emojis)
+
+ @property
def private_channels(self):
return list(self._private_channels.values())