aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXua <[email protected]>2019-06-27 20:02:09 +1200
committerRapptz <[email protected]>2019-06-29 19:15:20 -0400
commit69364a25eb65e1d6e13182ccb24c00794b8a8547 (patch)
treebf3e5157f4c08d02ca7e6c9dddc81100c4f83857
parent[tasks] Removed Returns from decorator docstring (diff)
downloaddiscord.py-69364a25eb65e1d6e13182ccb24c00794b8a8547.tar.xz
discord.py-69364a25eb65e1d6e13182ccb24c00794b8a8547.zip
fix documentation for GuildChannel.set_permissions
-rw-r--r--discord/abc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py
index e723b17a..73c12e53 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -552,8 +552,9 @@ class GuildChannel:
-----------
target: Union[:class:`~discord.Member`, :class:`~discord.Role`]
The member or role to overwrite permissions for.
- overwrite: :class:`~discord.PermissionOverwrite`
- The permissions to allow and deny to the target.
+ overwrite: Optional[:class:`~discord.PermissionOverwrite`]
+ The permissions to allow and deny to the target, or `None` to
+ delete the overwrite.
\*\*permissions
A keyword argument list of permissions to set for ease of use.
Cannot be mixed with ``overwrite``.