diff options
| author | 2018-07-24 02:08:07 -0400 | |
|---|---|---|
| committer | 2018-07-24 02:08:07 -0400 | |
| commit | 3a9b3b77fb350cdfd02970e6e00b1df383954b79 (patch) | |
| tree | 6ba8b83c673ba867af16d83987b5eed2b76fdc41 /bot/cogs/moderation.py | |
| parent | Use 'Muted' role, show actor in infraction list (diff) | |
Show active status in infraction list, fix Discord pagination rendering issue
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/moderation.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index c4ae52401..69cdfb10c 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -371,7 +371,8 @@ class Moderation: ctx=ctx, embed=embed, empty=True, - max_lines=5 + max_lines=3, + max_size=1000 ) elif isinstance(arg, str): @@ -449,15 +450,17 @@ class Moderation: actor_id = int(infraction_object["actor"]["user_id"]) guild: Guild = self.bot.get_guild(constants.Guild.id) actor = guild.get_member(actor_id) + active = infraction_object["active"] is True return "\n".join(( - "===============", + "**===============**" if active else "===============", + "Status: {0}".format("__**Active**__" if active else "Inactive"), "Type: **{0}**".format(infraction_object["type"]), "Reason: {0}".format(infraction_object["reason"] or "*None*"), "Created: {0}".format(infraction_object["inserted_at"]), "Expires: {0}".format(infraction_object["expires_at"] or "*Permanent*"), "Actor: {0}".format(actor.mention if actor else actor_id), - "===============", + "**===============**" if active else "===============" )) |