some changes or sm idk
This commit is contained in:
parent
6e7171fc48
commit
ce3193e113
1 changed files with 2 additions and 5 deletions
|
@ -32,10 +32,7 @@ class Logger(commands.Cog):
|
|||
if payload.cached_message.author.bot:
|
||||
return
|
||||
|
||||
# if len(payload.cached_message.content) > 3898:
|
||||
# content = payload.cached_message.content[:3900] + "..."
|
||||
# else:
|
||||
content = payload.cached_message.content
|
||||
content = f">>> {payload.cached_message.content}"
|
||||
|
||||
author = payload.cached_message.author
|
||||
|
||||
|
@ -45,7 +42,7 @@ class Logger(commands.Cog):
|
|||
if channel:
|
||||
embed = discord.Embed(color=discord.Color.from_str(value="#ff470f"), timestamp=datetime.now(tz=UTC))
|
||||
embed.set_author(name=f"{author.name}", icon_url=author.display_avatar.url)
|
||||
embed.description = bold(text=f"Message sent by {author.mention} deleted in {payload.cached_message.channel.mention}\n>>> ", escape_formatting=False) + content
|
||||
embed.description = bold(text=f"Message sent by {author.mention} deleted in {payload.cached_message.channel.mention}\n", escape_formatting=False) + content
|
||||
embed.set_footer(text=f"Author: {author.id} | Message ID: {payload.message_id}", icon_url=guild.icon.url)
|
||||
|
||||
await channel.send(embed=embed)
|
||||
|
|
Loading…
Reference in a new issue