From 3acb5a60765058df3537649c1a0cac54eec36674 Mon Sep 17 00:00:00 2001 From: plun1331 <49261529+plun1331@users.noreply.github.com> Date: Tue, 18 Jan 2022 17:33:17 -0800 Subject: [PATCH] Update converter.py --- discord/ext/commands/converter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 2f42392e79..c46cca43b8 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -341,7 +341,11 @@ def _get_id_matches(ctx, argument): if not match: raise MessageNotFound(argument) data = match.groupdict() - channel_id = discord.utils._get_as_snowflake(data, 'channel_id') + channel_id = data.get('channel_id') + if channel_id is None: + channel_id = ctx.channel and ctx.channel.id + else: + channel_id = int(channel_id) message_id = int(data['message_id']) guild_id = data.get('guild_id') if guild_id is None: