aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-03 22:54:21 -0400
committerRapptz <[email protected]>2021-04-03 22:54:21 -0400
commit421c0cd455da62bef8952aa3d9fa46f138305edf (patch)
treea5b9109635afa541083cbd0ea767b7545f8bd4cf
parentRework the reaction roles example (diff)
downloaddiscord.py-421c0cd455da62bef8952aa3d9fa46f138305edf.tar.xz
discord.py-421c0cd455da62bef8952aa3d9fa46f138305edf.zip
[commands] Add missing versionadded on StoreChannelConverter
-rw-r--r--discord/ext/commands/converter.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py
index 10e0fa23..730b3441 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):