Add Client.emojis to get all emojis.

This removes the older get_all_emojis generator.
This commit is contained in:
Rapptz
2017-02-10 15:46:00 -05:00
parent ae36008279
commit 0dac5e3139
2 changed files with 9 additions and 6 deletions

View File

@ -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())