[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:
entchen66 2019-05-13 11:39:28 +02:00 committed by Michael H
parent e96e5374b4
commit 3b6d4d9df6

View File

@ -262,7 +262,7 @@ class Cleanup(commands.Cog):
author = ctx.author author = ctx.author
try: try:
before = await channel.get_message(message_id) before = await channel.fetch_message(message_id)
except discord.NotFound: except discord.NotFound:
return await ctx.send(_("Message not found.")) return await ctx.send(_("Message not found."))