aboutsummaryrefslogtreecommitdiff
path: root/discord/emoji.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-11-11 03:12:43 -0500
committerRapptz <[email protected]>2017-01-03 09:51:57 -0500
commitc187d87dae6b094259440f8aa2a278fef38ae6d2 (patch)
tree53dd1e2dea747776fc0670645d97e68f6ccb32f3 /discord/emoji.py
parentRename try_insert_user to store_user (diff)
downloaddiscord.py-c187d87dae6b094259440f8aa2a278fef38ae6d2.tar.xz
discord.py-c187d87dae6b094259440f8aa2a278fef38ae6d2.zip
Re-add support for reactions.
We now store emojis in a global cache and make things like adding and removing reactions part of the stateful Message class.
Diffstat (limited to 'discord/emoji.py')
-rw-r--r--discord/emoji.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/emoji.py b/discord/emoji.py
index 1f06c7e4..55d0ab73 100644
--- a/discord/emoji.py
+++ b/discord/emoji.py
@@ -25,10 +25,13 @@ DEALINGS IN THE SOFTWARE.
"""
import asyncio
+from collections import namedtuple
from . import utils
from .mixins import Hashable
+PartialEmoji = namedtuple('PartialEmoji', 'id name')
+
class Emoji(Hashable):
"""Represents a custom emoji.