From 3670e418345043db6fa0b985056fdbb45ddb1235 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 16 Jul 2018 06:57:11 +0200 Subject: [PATCH] Fixed message lookup responding in the wrong channel --- bot/pluralkit/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/pluralkit/commands.py b/bot/pluralkit/commands.py index 685a1abe..57fcc39e 100644 --- a/bot/pluralkit/commands.py +++ b/bot/pluralkit/commands.py @@ -413,7 +413,6 @@ async def message_info(conn, message, args): # Find the actual message object channel = client.get_channel(str(message_row["channel"])) - message = await client.get_message(channel, str(message_row["mid"])) # Get the original sender of the message original_sender = await client.get_user_info(str(message_row["sender"])) @@ -435,7 +434,7 @@ async def message_info(conn, message, args): member["name"], member["hid"])) embed.add_field(name="Sent by", value="{}#{}".format( original_sender.name, original_sender.discriminator)) - embed.add_field(name="Content", value=message.clean_content, inline=False) + embed.add_field(name="Content", value=message_row["content"], inline=False) embed.set_author(name=member["name"], url=member["avatar_url"])