[commands] Add missing versionadded on StoreChannelConverter
This commit is contained in:
parent
e961fdeae0
commit
421c0cd455
@ -479,7 +479,7 @@ class CategoryChannelConverter(IDConverter):
|
|||||||
raise ChannelNotFound(argument)
|
raise ChannelNotFound(argument)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
class StoreChannelConverter(IDConverter):
|
class StoreChannelConverter(IDConverter):
|
||||||
"""Converts to a :class:`~discord.StoreChannel`.
|
"""Converts to a :class:`~discord.StoreChannel`.
|
||||||
|
|
||||||
@ -490,15 +490,17 @@ class StoreChannelConverter(IDConverter):
|
|||||||
|
|
||||||
1. Lookup by ID.
|
1. Lookup by ID.
|
||||||
2. Lookup by mention.
|
2. Lookup by mention.
|
||||||
3. Lookup by name
|
3. Lookup by name.
|
||||||
|
|
||||||
|
.. versionadded:: 1.7
|
||||||
"""
|
"""
|
||||||
|
|
||||||
async def convert(self, ctx, argument):
|
async def convert(self, ctx, argument):
|
||||||
bot = ctx.bot
|
bot = ctx.bot
|
||||||
match = self._get_id_match(argument) or re.match(r'<#([0-9]+)>$', argument)
|
match = self._get_id_match(argument) or re.match(r'<#([0-9]+)>$', argument)
|
||||||
result = None
|
result = None
|
||||||
guild = ctx.guild
|
guild = ctx.guild
|
||||||
|
|
||||||
if match is None:
|
if match is None:
|
||||||
# not a mention
|
# not a mention
|
||||||
if guild:
|
if guild:
|
||||||
@ -759,7 +761,7 @@ class clean_content(Converter):
|
|||||||
Whether to also escape special markdown characters.
|
Whether to also escape special markdown characters.
|
||||||
remove_markdown: :class:`bool`
|
remove_markdown: :class:`bool`
|
||||||
Whether to also remove special markdown characters. This option is not supported with ``escape_markdown``
|
Whether to also remove special markdown characters. This option is not supported with ``escape_markdown``
|
||||||
|
|
||||||
.. versionadded:: 1.7
|
.. versionadded:: 1.7
|
||||||
"""
|
"""
|
||||||
def __init__(self, *, fix_channel_mentions=False, use_nicknames=True, escape_markdown=False, remove_markdown=False):
|
def __init__(self, *, fix_channel_mentions=False, use_nicknames=True, escape_markdown=False, remove_markdown=False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user