From 64744a4938f101af7dbeb517a5b81b99837e89fb Mon Sep 17 00:00:00 2001 From: Puncher <65789180+Puncher1@users.noreply.github.com> Date: Tue, 30 Aug 2022 06:50:59 +0200 Subject: [PATCH] [commands] Add missing attributetable to classes --- discord/ext/commands/converter.py | 4 +-- docs/ext/commands/api.rst | 56 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 2658237ea..18df5669a 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -567,7 +567,7 @@ class CategoryChannelConverter(IDConverter[discord.CategoryChannel]): class ThreadConverter(IDConverter[discord.Thread]): - """Coverts to a :class:`~discord.Thread`. + """Converts to a :class:`~discord.Thread`. All lookups are via the local guild. @@ -676,7 +676,7 @@ class RoleConverter(IDConverter[discord.Role]): class GameConverter(Converter[discord.Game]): - """Converts to :class:`~discord.Game`.""" + """Converts to a :class:`~discord.Game`.""" async def convert(self, ctx: Context[BotT], argument: str) -> discord.Game: return discord.Game(name=argument) diff --git a/docs/ext/commands/api.rst b/docs/ext/commands/api.rst index b8272572a..6420d2b0d 100644 --- a/docs/ext/commands/api.rst +++ b/docs/ext/commands/api.rst @@ -421,77 +421,127 @@ Context Converters ------------ +.. attributetable:: discord.ext.commands.Converter + .. autoclass:: discord.ext.commands.Converter :members: +.. attributetable:: discord.ext.commands.ObjectConverter + .. autoclass:: discord.ext.commands.ObjectConverter :members: +.. attributetable:: discord.ext.commands.MemberConverter + .. autoclass:: discord.ext.commands.MemberConverter :members: +.. attributetable:: discord.ext.commands.UserConverter + .. autoclass:: discord.ext.commands.UserConverter :members: +.. attributetable:: discord.ext.commands.MessageConverter + .. autoclass:: discord.ext.commands.MessageConverter :members: +.. attributetable:: discord.ext.commands.PartialMessageConverter + .. autoclass:: discord.ext.commands.PartialMessageConverter :members: +.. attributetable:: discord.ext.commands.GuildChannelConverter + .. autoclass:: discord.ext.commands.GuildChannelConverter :members: +.. attributetable:: discord.ext.commands.TextChannelConverter + .. autoclass:: discord.ext.commands.TextChannelConverter :members: +.. attributetable:: discord.ext.commands.VoiceChannelConverter + .. autoclass:: discord.ext.commands.VoiceChannelConverter :members: +.. attributetable:: discord.ext.commands.StageChannelConverter + .. autoclass:: discord.ext.commands.StageChannelConverter :members: +.. attributetable:: discord.ext.commands.CategoryChannelConverter + .. autoclass:: discord.ext.commands.CategoryChannelConverter :members: +.. attributetable:: discord.ext.commands.ForumChannelConverter + .. autoclass:: discord.ext.commands.ForumChannelConverter :members: +.. attributetable:: discord.ext.commands.InviteConverter + .. autoclass:: discord.ext.commands.InviteConverter :members: +.. attributetable:: discord.ext.commands.GuildConverter + .. autoclass:: discord.ext.commands.GuildConverter :members: +.. attributetable:: discord.ext.commands.RoleConverter + .. autoclass:: discord.ext.commands.RoleConverter :members: +.. attributetable:: discord.ext.commands.GameConverter + .. autoclass:: discord.ext.commands.GameConverter :members: +.. attributetable:: discord.ext.commands.ColourConverter + .. autoclass:: discord.ext.commands.ColourConverter :members: +.. attributetable:: discord.ext.commands.EmojiConverter + .. autoclass:: discord.ext.commands.EmojiConverter :members: +.. attributetable:: discord.ext.commands.PartialEmojiConverter + .. autoclass:: discord.ext.commands.PartialEmojiConverter :members: +.. attributetable:: discord.ext.commands.ThreadConverter + .. autoclass:: discord.ext.commands.ThreadConverter :members: +.. attributetable:: discord.ext.commands.GuildStickerConverter + .. autoclass:: discord.ext.commands.GuildStickerConverter :members: +.. attributetable:: discord.ext.commands.ScheduledEventConverter + .. autoclass:: discord.ext.commands.ScheduledEventConverter :members: +.. attributetable:: discord.ext.commands.clean_content + .. autoclass:: discord.ext.commands.clean_content :members: +.. attributetable:: discord.ext.commands.Greedy + .. autoclass:: discord.ext.commands.Greedy() +.. attributetable:: discord.ext.commands.Range + .. autoclass:: discord.ext.commands.Range() .. autofunction:: discord.ext.commands.run_converters @@ -499,9 +549,13 @@ Converters Flag Converter ~~~~~~~~~~~~~~~ +.. attributetable:: discord.ext.commands.FlagConverter + .. autoclass:: discord.ext.commands.FlagConverter :members: +.. attributetable:: discord.ext.commands.Flag + .. autoclass:: discord.ext.commands.Flag() :members: @@ -511,6 +565,8 @@ Flag Converter Defaults -------- +.. attributetable:: discord.ext.commands.Parameter + .. autoclass:: discord.ext.commands.Parameter() :members: