Skip to content

Commit

Permalink
use thread jump links instead of logviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBSG committed Jul 13, 2024
1 parent 0341be6 commit 91848bd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cogs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,10 @@ async def _close_thread(
user = doc['recipient']

embed = discord.Embed(
description=config.logUrl + doc['_id'], color=0xB8E986, timestamp=datetime.now(tz=timezone.utc)
description=thread_channel.jump_url, color=0xB8E986, timestamp=datetime.now(tz=timezone.utc)
)

if user["discriminator"] == "0":
embed.set_author(name=f'Modmail closed | {user["name"]} ({user["id"]})')
else:
embed.set_author(name=f'Modmail closed | {user["name"]}#{user["discriminator"]} ({user["id"]})')
embed.set_author(name=f'Modmail closed | {user["name"]} ({user["id"]})')

embed.add_field(name='User', value=f'<@{user["id"]}>', inline=True)
embed.add_field(name='Moderator', value=f'{mod_user.mention}', inline=True)
Expand Down

0 comments on commit 91848bd

Please sign in to comment.