From 311e7082c9d447bc4b59263c8784097490d1d284 Mon Sep 17 00:00:00 2001 From: = <=> Date: Sun, 6 Apr 2025 12:40:55 +0700 Subject: [PATCH] User avatars in logs --- events/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events/log.py b/events/log.py index 55cd897..aec4365 100644 --- a/events/log.py +++ b/events/log.py @@ -13,7 +13,7 @@ class Logger(commands.Cog): description=msg.content, url="https://entarapi.xyz" )) - embedlist[0].set_author(name=msg.author.name) + embedlist[0].set_author(name=msg.author.name, icon_url=ctx.author.avatar.url) for image in msg.attachments: newembed = nextcord.Embed(url="https://entarapi.xyz") newembed.set_image(image.url) # Unfortunately i cant add multiple images. @@ -26,6 +26,7 @@ class Logger(commands.Cog): title="Command used", description=ctx.message.content ) + embed.set_author(name=ctx.author.name, icon_url=ctx.author.avatar.url) field = embed.add_field(name="Channel", value=ctx.channel.name) await SquogMod.send(embed=embed)