diff options
| author | Skezza <[email protected]> | 2020-07-07 10:49:02 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-07-22 23:16:43 -0400 |
| commit | 4a686e11ba87ebf2100eb57dbb6bb9b09050dfc1 (patch) | |
| tree | 5db24346e062b5395ab17dbe969ca40083bcd95f | |
| parent | Add double backticks for some parameter mentions in the documentation. (diff) | |
| download | discord.py-4a686e11ba87ebf2100eb57dbb6bb9b09050dfc1.tar.xz discord.py-4a686e11ba87ebf2100eb57dbb6bb9b09050dfc1.zip | |
Added exception documentation for Guild.create_voice_channel
| -rw-r--r-- | discord/guild.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/discord/guild.py b/discord/guild.py index 4a02cbd5..8e88bb45 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 ------- |