Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Nov 28, 2023
1 parent 4d2d552 commit 3c273e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cogs/inquiry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}")

Expand Down
4 changes: 2 additions & 2 deletions cogs/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3c273e8

Please sign in to comment.