Fix formatting on modcase tables
This commit is contained in:
parent
17b78e5f4e
commit
531239db12
1 changed files with 5 additions and 7 deletions
|
@ -42,15 +42,13 @@ class CaseCog(Cog):
|
|||
mod_case: Moderation case
|
||||
guild: Originating guild
|
||||
"""
|
||||
action_table = Table(title="Actions", show_header=False)
|
||||
action_table = Table()
|
||||
action_table.add_column(header="Type", justify="left", style="orange4", no_wrap=True)
|
||||
action_table.add_column(
|
||||
header="Admin", justify="left", style="light_sky_blue1", no_wrap=True
|
||||
)
|
||||
action_table.add_column(header="Admin", justify="left", style="cyan", no_wrap=True)
|
||||
action_table.add_column(header="Reason", justify="left", style="white")
|
||||
|
||||
note_table = Table(title="Notes")
|
||||
note_table.add_column(header="Admin", justify="left", style="light_sky_blue1", no_wrap=True)
|
||||
note_table = Table()
|
||||
note_table.add_column(header="Admin", justify="left", style="cyan", no_wrap=True)
|
||||
note_table.add_column(header="Content", justify="left", style="white")
|
||||
|
||||
console = Console()
|
||||
|
@ -80,7 +78,7 @@ class CaseCog(Cog):
|
|||
for note in sorted(mod_case.notes, key=lambda x: x.created_at):
|
||||
admin = await self.bot.fetch_user(note.admin)
|
||||
admin_text = "N/A"
|
||||
if not admin:
|
||||
if admin:
|
||||
admin_text = f"{admin.username}#{admin.discriminator}"
|
||||
note_table.add_row(admin_text, note.content)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue