From 3b6d4d9df66326590fb2553f3047eb950db16285 Mon Sep 17 00:00:00 2001 From: entchen66 Date: Mon, 13 May 2019 11:39:28 +0200 Subject: [PATCH] [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 --- redbot/cogs/cleanup/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/cleanup/cleanup.py b/redbot/cogs/cleanup/cleanup.py index 3b95c71aa..60796e314 100644 --- a/redbot/cogs/cleanup/cleanup.py +++ b/redbot/cogs/cleanup/cleanup.py @@ -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."))