From 0dac5e31392710fa76cdc72f4307cc3f3d7a429c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 10 Feb 2017 15:46:00 -0500 Subject: Add Client.emojis to get all emojis. This removes the older get_all_emojis generator. --- discord/state.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'discord/state.py') diff --git a/discord/state.py b/discord/state.py index 5a10a185..2d02da60 100644 --- a/discord/state.py +++ b/discord/state.py @@ -160,6 +160,10 @@ class ConnectionState: def _remove_guild(self, guild): 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()) -- cgit v1.2.3