Log fixes

This commit is contained in:
= 2025-04-06 12:39:14 +07:00
parent a03db533f1
commit d857126a1c

View File

@ -8,12 +8,12 @@ class Logger(commands.Cog):
@commands.Cog.listener() @commands.Cog.listener()
async def on_message_delete(self, msg: nextcord.Message): async def on_message_delete(self, msg: nextcord.Message):
embedlist = [] embedlist = []
embedlist[0] = nextcord.Embed( embedlist.append(nextcord.Embed(
title="Message delete", title="Message delete",
description=msg.content, description=msg.content,
url="https://entarapi.xyz" url="https://entarapi.xyz"
) ))
embedlist.set_author(name=msg.author.name) embedlist[0].set_author(name=msg.author.name)
for image in msg.attachments: for image in msg.attachments:
newembed = nextcord.Embed(url="https://entarapi.xyz") newembed = nextcord.Embed(url="https://entarapi.xyz")
newembed.set_image(image.url) # Unfortunately i cant add multiple images. newembed.set_image(image.url) # Unfortunately i cant add multiple images.