This commit is contained in:
Zeva Rose 2021-07-19 13:03:45 -06:00
parent 02ce5b34a3
commit 505787fe94

View file

@ -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",