From 10453d671819b16de32410418ec8e5d803e654bf Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 30 Apr 2017 02:53:05 -0400 Subject: Add Client.get_emoji to get an Emoji from an ID. --- discord/client.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'discord/client.py') diff --git a/discord/client.py b/discord/client.py index e1b2a798..6979df06 100644 --- a/discord/client.py +++ b/discord/client.py @@ -532,6 +532,10 @@ class Client: """Returns a :class:`User` with the given ID. If not found, returns None.""" return self.connection.get_user(id) + def get_emoji(self, id): + """Returns a :class:`Emoji` with the given ID. If not found, returns None.""" + return self.connection.get_emoji(id) + def get_all_channels(self): """A generator that retrieves every :class:`Channel` the client can 'access'. -- cgit v1.2.3