fix(history): fixed two broken method calls
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
This commit is contained in:
parent
2f26da72ab
commit
45a1edf0d0
1 changed files with 2 additions and 2 deletions
|
@ -466,8 +466,8 @@ class Moderation(commands.Cog):
|
|||
embed.set_author(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(case['target_id'])
|
||||
moderator_user = await self.fetch_user_dict(case['moderator_id'])
|
||||
target_user = await self.fetch_user_dict(interaction, case['target_id'])
|
||||
moderator_user = await self.fetch_user_dict(interaction, case['moderator_id'])
|
||||
target_name = f"`{target_user['name']}`" if target_user['discriminator'] == "0" else f"`{target_user['name']}#{target_user['discriminator']}`"
|
||||
moderator_name = moderator_user['name'] if moderator_user['discriminator'] == "0" else f"{moderator_user['name']}#{moderator_user['discriminator']}"
|
||||
field_name = f"Case #{case['moderation_id']} ({str.title(case['moderation_type'])})"
|
||||
|
|
Loading…
Reference in a new issue