From 4839fd6cff195fbca858cc78fbabee384b36e136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Celderlabs=E2=80=9D?= Date: Fri, 12 Jul 2019 04:55:15 -0400 Subject: [PATCH] Justin proved that this is settable now, though undocumented in the API. Co-authored-by: ThatGuyJustin <14909116+ThatGuyJustin@users.noreply.github.com> --- disco/types/guild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disco/types/guild.py b/disco/types/guild.py index 481d1ce..b6b5ade 100644 --- a/disco/types/guild.py +++ b/disco/types/guild.py @@ -546,8 +546,7 @@ class Guild(SlottedModel, Permissible): """ return self.client.api.guilds_channels_create( self.id, ChannelType.GUILD_TEXT, name=name, permission_overwrites=permission_overwrites, - parent_id=parent_id, nsfw=nsfw, position=position, reason=reason, - ) + parent_id=parent_id, nsfw=nsfw, position=position, reason=reason) def create_voice_channel( self, @@ -556,13 +555,14 @@ class Guild(SlottedModel, Permissible): parent_id=None, bitrate=None, user_limit=None, - position=None): + position=None, + reason=None): """ Creates a voice channel within the guild. """ return self.client.api.guilds_channels_create( self.id, ChannelType.GUILD_VOICE, name=name, permission_overwrites=permission_overwrites, - parent_id=parent_id, bitrate=bitrate, user_limit=user_limit, position=position, reason=None) + parent_id=parent_id, bitrate=bitrate, user_limit=user_limit, position=position, reason=reason) def leave(self): return self.client.api.users_me_guilds_delete(self.id)