From b88658f42fbe1af869745be649a1de579d798f4d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 24 Mar 2017 21:50:19 -0400 Subject: [PATCH] Allow Emoji to be used in a weakref. --- discord/emoji.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/emoji.py b/discord/emoji.py index ff839c4d1..0e2158ec8 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -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