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
All checks were successful
Pylint / Pylint (push) Successful in 1m14s
This commit is contained in:
parent
0925753404
commit
9900c7ea98
1 changed files with 2 additions and 2 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue