From 7256ff35fc8d00777879c20f649ece5dfa9fbb67 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 24 Apr 2017 12:56:40 -0700 Subject: [PATCH] Fix API-returned GuildEmoji's not having guild_id set --- disco/api/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disco/api/client.py b/disco/api/client.py index 45d765f..bf0ec30 100644 --- a/disco/api/client.py +++ b/disco/api/client.py @@ -324,11 +324,11 @@ class APIClient(LoggingClass): def guilds_emojis_create(self, guild, **kwargs): r = self.http(Routes.GUILDS_EMOJIS_CREATE, dict(guild=guild), json=kwargs) - return GuildEmoji.create(self.client, r.json()) + return GuildEmoji.create(self.client, r.json(), guild_id=guild) def guilds_emojis_modify(self, guild, emoji, **kwargs): r = self.http(Routes.GUILDS_EMOJIS_MODIFY, dict(guild=guild, emoji=emoji), json=kwargs) - return GuildEmoji.create(self.client, r.json()) + return GuildEmoji.create(self.client, r.json(), guild_id=guild) def guilds_emojis_delete(self, guild, emoji): self.http(Routes.GUILDS_EMOJIS_DELETE, dict(guild=guild, emoji=emoji))