From 68dbf0f88279ed1a0f926d88a093cc051f61b660 Mon Sep 17 00:00:00 2001 From: ChrisJL Date: Tue, 15 Mar 2022 01:01:14 +0000 Subject: [PATCH] [commands] Fix message converter not inferring channel when missing --- discord/ext/commands/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index e9a2ea758..2d68ea8bd 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -344,7 +344,7 @@ class PartialMessageConverter(Converter[discord.PartialMessage]): if not match: raise MessageNotFound(argument) data = match.groupdict() - channel_id = discord.utils._get_as_snowflake(data, 'channel_id') + channel_id = discord.utils._get_as_snowflake(data, 'channel_id') or ctx.channel.id message_id = int(data['message_id']) guild_id = data.get('guild_id') if guild_id is None: