From 375b1ff942952361a961c85be56685e50cd269e7 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 10 Apr 2017 21:48:32 -0700 Subject: [PATCH] Make sure emojis track guild_id --- disco/state.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disco/state.py b/disco/state.py index 689ab62..2983aa0 100644 --- a/disco/state.py +++ b/disco/state.py @@ -309,6 +309,9 @@ class State(object): if event.guild_id not in self.guilds: return + for emoji in event.emojis: + emoji.guild_id = event.guild_id + self.guilds[event.guild_id].emojis = HashMap({i.id: i for i in event.emojis}) def on_presence_update(self, event):