Beispiel #1
0
 def guilds_delete(self, guild):
     r = self.http(Routes.GUILDS_DELETE, dict(guild=guild))
     return Guild.create(self.client, r.json())
Beispiel #2
0
 def guilds_get(self, guild):
     r = self.http(Routes.GUILDS_GET, dict(guild=guild))
     return Guild.create(self.client, r.json())
Beispiel #3
0
 def guilds_modify(self, guild, **kwargs):
     r = self.http(Routes.GUILDS_MODIFY, dict(guild=guild), json=kwargs)
     return Guild.create(self.client, r.json())
Beispiel #4
0
 def guilds_modify(self, guild, reason=None, **kwargs):
     r = self.http(Routes.GUILDS_MODIFY, dict(guild=guild), json=kwargs, headers=_reason_header(reason))
     return Guild.create(self.client, r.json())