diff options
Diffstat (limited to 'bot/utils')
-rw-r--r-- | bot/utils/converters.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/utils/converters.py b/bot/utils/converters.py index 74a0b5b7..f36fa03a 100644 --- a/bot/utils/converters.py +++ b/bot/utils/converters.py @@ -1,11 +1,12 @@ import discord - from discord.ext.commands.converter import MessageConverter class BetterMessageConverter(MessageConverter): - """A converter that handles embed-suppressed links like <http://example.com>""" - async def convert(self, ctx, argument: str) -> discord.Message: + """A converter that handles embed-suppressed links like <http://example.com>.""" + + async def convert(self, ctx: discord.ext.commands.Context, argument: str) -> discord.Message: + """Wrap the commands.MessageConverter to handle <> delimited message links.""" # It's possible to wrap a message in [<>] as well, and it's supported because its easy if argument.startswith("[") and argument.endswith("]"): argument = argument[1:-1] |