Close #55
This commit is contained in:
parent
02ce5b34a3
commit
505787fe94
1 changed files with 13 additions and 2 deletions
|
@ -865,9 +865,20 @@ class AdminCog(commands.Cog):
|
|||
}
|
||||
)
|
||||
)
|
||||
active = len(list(filter(lambda x: x["active"], warnings)))
|
||||
active = (
|
||||
[
|
||||
y["reason"]
|
||||
for y in list(filter(lambda x: x["active"], warnings))
|
||||
]
|
||||
if warnings
|
||||
else ["None"]
|
||||
)
|
||||
|
||||
total = len(warnings)
|
||||
fields = [Field("Active", active), Field("Total", total)]
|
||||
fields = [
|
||||
Field(f"{len(active)} Active", "\n".join(active)),
|
||||
Field("Total", total),
|
||||
]
|
||||
embed = build_embed(
|
||||
title="Warnings",
|
||||
description=f"{user.mention} active and total warnings",
|
||||
|
|
Loading…
Add table
Reference in a new issue