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.
This commit is contained in:
Rapptz committed 2017-01-03 09:51:57 -05:00
1 parent 59a0df5f98
commit c187d87dae
6 files changed
+238 -88

No files matched your search

+3
View File
@@ -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.