From 421c0cd455da62bef8952aa3d9fa46f138305edf Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 3 Apr 2021 22:54:21 -0400 Subject: [PATCH] [commands] Add missing versionadded on StoreChannelConverter --- discord/ext/commands/converter.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 10e0fa23f..730b34417 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -479,7 +479,7 @@ class CategoryChannelConverter(IDConverter): raise ChannelNotFound(argument) return result - + class StoreChannelConverter(IDConverter): """Converts to a :class:`~discord.StoreChannel`. @@ -490,15 +490,17 @@ class StoreChannelConverter(IDConverter): 1. Lookup by ID. 2. Lookup by mention. - 3. Lookup by name + 3. Lookup by name. + + .. versionadded:: 1.7 """ - + async def convert(self, ctx, argument): bot = ctx.bot match = self._get_id_match(argument) or re.match(r'<#([0-9]+)>$', argument) result = None guild = ctx.guild - + if match is None: # not a mention if guild: @@ -759,7 +761,7 @@ class clean_content(Converter): Whether to also escape special markdown characters. remove_markdown: :class:`bool` Whether to also remove special markdown characters. This option is not supported with ``escape_markdown`` - + .. versionadded:: 1.7 """ def __init__(self, *, fix_channel_mentions=False, use_nicknames=True, escape_markdown=False, remove_markdown=False):