From 3c273e8ea171f165b7d68af5da0c282edc8fc813 Mon Sep 17 00:00:00 2001 From: Selyss <99344963+Selyss@users.noreply.github.com> Date: Mon, 27 Nov 2023 20:51:52 -0500 Subject: [PATCH] update --- cogs/inquiry.py | 2 +- cogs/ticket.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/inquiry.py b/cogs/inquiry.py index 46a7fc6..6d35e16 100644 --- a/cogs/inquiry.py +++ b/cogs/inquiry.py @@ -141,7 +141,7 @@ async def callback(self, inter: nextcord.Interaction) -> None: if isinstance(inter.channel, nextcord.TextChannel): target_channel = inter.guild.get_channel(REQUEST_CHANNEL) em = nextcord.Embed() - em.set_author(icon_url=inter.user.avatar, name=interaction.user.name) + em.set_author(icon_url=inter.user.avatar, name=inter.user.name) em.add_field(name="**reason**", value=self.details.value) em.set_footer(text=f"{inter.user.id} • {get_date()} • {get_time()}") diff --git a/cogs/ticket.py b/cogs/ticket.py index da3879e..2ef4216 100644 --- a/cogs/ticket.py +++ b/cogs/ticket.py @@ -3,8 +3,8 @@ from nextcord.ext.commands import Bot, Cog import nextcord -with open("config.json", "r", encoding="utf-8") as config_file: - config = json.load(config_file) +with open("config.json", "r", encoding="utf-8") as conf: + config = json.load(conf) class Ticket(Cog):