Fix warnings.count -> len(warnings)
This commit is contained in:
parent
5d3af23f0e
commit
f8e1d88c5e
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class WarningCog(ModcaseCog):
|
||||||
if len(active_warns) == 0:
|
if len(active_warns) == 0:
|
||||||
embed = build_embed(
|
embed = build_embed(
|
||||||
title="Warnings",
|
title="Warnings",
|
||||||
description=f"{warnings.count()} total | 0 currently active",
|
description=f"{len(warnings)} total | 0 currently active",
|
||||||
fields=[],
|
fields=[],
|
||||||
)
|
)
|
||||||
embed.set_author(name=user.username, icon_url=user.display_avatar.url)
|
embed.set_author(name=user.username, icon_url=user.display_avatar.url)
|
||||||
|
|
Loading…
Add table
Reference in a new issue