|
|
@ -437,7 +437,7 @@ class APIClient(LoggingClass): |
|
|
|
r = self.http(Routes.GUILDS_PRUNE_COUNT, dict(guild=guild), params=optional(days=days)) |
|
|
|
return PruneCount.create(self.client, r.json()) |
|
|
|
|
|
|
|
def guilds_prune(self, guild, days=None, compute_prune_count=None): |
|
|
|
def guilds_prune_create(self, guild, days=None, compute_prune_count=None): |
|
|
|
r = self.http(Routes.GUILDS_PRUNE_BEGIN, dict(guild=guild), params=optional( |
|
|
|
days=days, |
|
|
|
compute_prune_count=compute_prune_count, |
|
|
@ -504,7 +504,7 @@ class APIClient(LoggingClass): |
|
|
|
def guilds_roles_delete(self, guild, role, reason=None): |
|
|
|
self.http(Routes.GUILDS_ROLES_DELETE, dict(guild=guild, role=role), headers=_reason_header(reason)) |
|
|
|
|
|
|
|
def guilds_regions_list(self, guild): |
|
|
|
def guilds_voice_regions_list(self, guild): |
|
|
|
r = self.http(Routes.GUILDS_VOICE_REGIONS_LIST, dict(guild=guild)) |
|
|
|
return VoiceRegion.create_hash(self.client, 'id', r.json()) |
|
|
|
|
|
|
@ -592,7 +592,7 @@ class APIClient(LoggingClass): |
|
|
|
r = self.http(Routes.INVITES_DELETE, dict(invite=invite), headers=_reason_header(reason)) |
|
|
|
return Invite.create(self.client, r.json()) |
|
|
|
|
|
|
|
def regions_list(self): |
|
|
|
def voice_regions_list(self): |
|
|
|
r = self.http(Routes.VOICE_REGIONS_LIST) |
|
|
|
return VoiceRegion.create_hash(self.client, 'id', r.json()) |
|
|
|
|
|
|
|