From 268b6154bf59a16c27aea82d97e63827278c9684 Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 9 Mar 2023 20:55:49 +0100 Subject: [PATCH] Update chat.py --- code/cogs/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cogs/chat.py b/code/cogs/chat.py index c358b37..b1a02e5 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -20,7 +20,7 @@ class MyModal(discord.ui.Modal): webhook = discord.Webhook.from_url(webhook_url, session=session) embed = discord.Embed(title="Downvote", description=f"Downvote recieved!", color=discord.Color.og_blurple()) embed.add_field(name="Reason", value=self.children[0].value, inline=True) - embed.add_field(name="Author", value=self.message.author.mention, inline=True) + embed.add_field(name="Author", value=interaction.user.mention, inline=True) embed.add_field(name="Channel", value=self.message.channel.name, inline=True) embed.add_field(name="Guild", value=self.message.guild.name, inline=True) history = await self.message.channel.history(limit=5, before=self.message).flatten()