mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Cleanup] Fix for 3.1 (#2661)
cleanup before use get_message wich isn't possible anymore in dp 1.0.1. so I changed it to fetch_message
This commit is contained in:
parent
e96e5374b4
commit
3b6d4d9df6
@ -262,7 +262,7 @@ class Cleanup(commands.Cog):
|
||||
author = ctx.author
|
||||
|
||||
try:
|
||||
before = await channel.get_message(message_id)
|
||||
before = await channel.fetch_message(message_id)
|
||||
except discord.NotFound:
|
||||
return await ctx.send(_("Message not found."))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user