fix(moderation): fixed history embed setting the url instead of the icon url for the author field
All checks were successful
Pylint / Pylint (push) Successful in 1m14s

This commit is contained in:
Seaswimmer 2023-10-06 13:43:50 -04:00
parent 0925753404
commit 9900c7ea98
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -471,8 +471,8 @@ class Moderation(commands.Cog):
page_quantity = round(case_quantity / pagesize)
start_index = (page - 1) * pagesize
end_index = page * pagesize
embed = discord.Embed(color= await self.bot.get_embed_color(None))
embed.set_author(url=interaction.guild.icon.url, name='Infraction History')
embed = discord.Embed(color=await self.bot.get_embed_color(None))
embed.set_author(icon_url=interaction.guild.icon.url, name='Infraction History')
embed.set_footer(text=f"Page {page}/{page_quantity} | {case_quantity} Results")
for case in result_dict_list[start_index:end_index]:
target_user = await self.fetch_user_dict(interaction, case['target_id'])