diff options
| author | 2019-06-09 13:40:46 -0700 | |
|---|---|---|
| committer | 2019-06-09 13:40:46 -0700 | |
| commit | dd0def06556caa12ab8ce8617ddd86a0a2619f9b (patch) | |
| tree | 9f2c2f01c0d54937cb8fde7176b45a58afd84428 | |
| parent | Add appeals e-mail to infraction DMs (diff) | |
Add mutes as an appealable infraction
| -rw-r--r-- | bot/cogs/moderation.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py index eff002cba..73359c88c 100644 --- a/bot/cogs/moderation.py +++ b/bot/cogs/moderation.py @@ -29,6 +29,7 @@ INFRACTION_ICONS = { "Ban": Icons.user_ban } RULES_URL = "https://pythondiscord.com/about/rules" +APPEALABLE_INFRACTIONS = ("Ban", "Mute") def proxy_user(user_id: str) -> Object: @@ -1302,7 +1303,7 @@ class Moderation(Scheduler): embed.title = f"Please review our rules over at {RULES_URL}" embed.url = RULES_URL - if infr_type == "Ban": + if infr_type in APPEALABLE_INFRACTIONS: embed.set_footer(text="To appeal this infraction, send an e-mail to [email protected]") return await self.send_private_embed(user, embed) |