aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisa <[email protected]>2020-12-07 15:34:51 -0800
committerGitHub <[email protected]>2020-12-07 18:34:51 -0500
commitfff22348235e4891de770af6d9e116dece802b6f (patch)
tree3cd8942d74f4b2c007efe8ea817b22b879be7dfe
parentAdd created_at property to PartialEmoji (diff)
downloaddiscord.py-fff22348235e4891de770af6d9e116dece802b6f.tar.xz
discord.py-fff22348235e4891de770af6d9e116dece802b6f.zip
Fix wrong documented permission for GuildChannel.invites()
I tested it just now, and manage_guild is not the permission you need to fetch invites from a given channel. You need manage_channels. Note that this isn't the same as Guild.invites(), which DOES use manage_guild.
-rw-r--r--discord/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 84757fcb..e45312b6 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -755,7 +755,7 @@ class GuildChannel:
Returns a list of all active instant invites from this channel.
- You must have :attr:`~Permissions.manage_guild` to get this information.
+ You must have :attr:`~Permissions.manage_channels` to get this information.
Raises
-------