Browse Source

[commands] Add missing versionadded on StoreChannelConverter

pull/6818/head
Rapptz 4 years ago
parent
commit
421c0cd455
  1. 12
      discord/ext/commands/converter.py

12
discord/ext/commands/converter.py

@ -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…
Cancel
Save