mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
[commands] Fix message converter not inferring channel when missing
This commit is contained in:
parent
3fd8f76c61
commit
68dbf0f882
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user