From 68eb844d48be4aaeb55a264944b1a7164329ee75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Sun, 7 Feb 2021 10:32:33 +0000 Subject: [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. --- docs/ext/commands/api.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/ext') 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: -- cgit v1.2.3