Browse Source

Make sure emojis track guild_id

feature/storage
Andrei 8 years ago
parent
commit
375b1ff942
  1. 3
      disco/state.py

3
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):

Loading…
Cancel
Save