diff options
| author | webtax-gh <[email protected]> | 2020-11-18 17:49:39 -0800 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-11-21 22:16:41 -0500 |
| commit | 25f23ec11366af17d35b696752e14a2e88983f0f (patch) | |
| tree | cd54ea32c315f8a2310afbae0e54cfedd9b2d63f | |
| parent | Raise DiscordServerError for 503 Service Unavailable errors (diff) | |
| download | discord.py-25f23ec11366af17d35b696752e14a2e88983f0f.tar.xz discord.py-25f23ec11366af17d35b696752e14a2e88983f0f.zip | |
Properly document that categories throw 404's on create_invite.
| -rw-r--r-- | discord/abc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 9dffb8d2..91da74df 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -710,7 +710,7 @@ class GuildChannel: async def create_invite(self, *, reason=None, **fields): """|coro| - Creates an instant invite. + Creates an instant invite from a text or voice channel. You must have the :attr:`~Permissions.create_instant_invite` permission to do this. @@ -738,6 +738,9 @@ class GuildChannel: ~discord.HTTPException Invite creation failed. + ~discord.NotFound + The channel that was passed is a category or an invalid channel. + Returns -------- :class:`~discord.Invite` |