From 4a686e11ba87ebf2100eb57dbb6bb9b09050dfc1 Mon Sep 17 00:00:00 2001 From: Skezza <36114463+SkezzaB@users.noreply.github.com> Date: Tue, 7 Jul 2020 10:49:02 +0100 Subject: [PATCH] Added exception documentation for Guild.create_voice_channel --- discord/guild.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/discord/guild.py b/discord/guild.py index 4a02cbd55..8e88bb458 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -905,6 +905,15 @@ class Guild(Hashable): The channel's preferred audio bitrate in bits per second. user_limit: :class:`int` The channel's limit for number of members that can be in a voice channel. + + Raises + ------ + Forbidden + You do not have the proper permissions to create this channel. + HTTPException + Creating the channel failed. + InvalidArgument + The permission overwrite information is not in proper form. Returns ------- @@ -927,6 +936,15 @@ class Guild(Hashable): The ``category`` parameter is not supported in this function since categories cannot have categories. + + Raises + ------ + Forbidden + You do not have the proper permissions to create this channel. + HTTPException + Creating the channel failed. + InvalidArgument + The permission overwrite information is not in proper form. Returns -------