Allow Emoji to be used in a weakref.

This commit is contained in:
Rapptz 2017-03-24 21:50:19 -04:00
parent aef170d7e0
commit b88658f42f

View File

@ -73,7 +73,7 @@ class Emoji(Hashable):
A list of :class:`Role` that is allowed to use this emoji. If roles is empty,
the emoji is unrestricted.
"""
__slots__ = ('require_colons', 'managed', 'id', 'name', 'roles', 'guild', '_state')
__slots__ = ('require_colons', 'managed', 'id', 'name', 'roles', 'guild', '_state', '__weakref__')
def __init__(self, *, guild, state, data):
self.guild = guild