Browse Source

Add missing self.client to guilds_integrations_create()

pull/152/head
“elderlabs” 5 years ago
parent
commit
b4f4e1cfc2
  1. 2
      disco/api/client.py

2
disco/api/client.py

@ -516,7 +516,7 @@ class APIClient(LoggingClass):
def guilds_integrations_create(self, guild, type, id): def guilds_integrations_create(self, guild, type, id):
r = self.http(Routes.GUILDS_INTEGRATIONS_CREATE, dict(guild=guild), json={"type": type, "id": id}) r = self.http(Routes.GUILDS_INTEGRATIONS_CREATE, dict(guild=guild), json={"type": type, "id": id})
return Integration.create(r.json()) return Integration.create(self.client, r.json())
def guilds_integrations_modify( def guilds_integrations_modify(
self, self,

Loading…
Cancel
Save