diff options
| author | Alex Nørgaard <[email protected]> | 2021-02-07 10:32:33 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-07 05:32:33 -0500 |
| commit | 68eb844d48be4aaeb55a264944b1a7164329ee75 (patch) | |
| tree | 4e0312e3df16ca58d602061f4397623db1adce2a /docs | |
| parent | Ensure Message.call is None by default (diff) | |
| download | discord.py-68eb844d48be4aaeb55a264944b1a7164329ee75.tar.xz discord.py-68eb844d48be4aaeb55a264944b1a7164329ee75.zip | |
[commands] Add discord.Guild converter and GuildNotFound error
* Add discord.Guild converter and GuildNotFound error
* note for lack of disambiguation in Guilds with duplicate names, and removed the possibility of returning None
* edited converter to use `utils.get` over `utils.find` and docs edited with Converter and Exception.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ext/commands/api.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ext/commands/api.rst b/docs/ext/commands/api.rst index 86ceeb2a..f66c2958 100644 --- a/docs/ext/commands/api.rst +++ b/docs/ext/commands/api.rst @@ -296,6 +296,9 @@ Converters .. autoclass:: discord.ext.commands.InviteConverter :members: +.. autoclass:: discord.ext.commands.GuildConverter + :members: + .. autoclass:: discord.ext.commands.RoleConverter :members: @@ -410,6 +413,9 @@ Exceptions .. autoexception:: discord.ext.commands.MemberNotFound :members: +.. autoexception:: discord.ext.commands.GuildNotFound + :members: + .. autoexception:: discord.ext.commands.UserNotFound :members: |