aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-06-09 22:48:46 +0200
committerGravatar GitHub <[email protected]>2019-06-09 22:48:46 +0200
commit1e8e3b5d9ada98c27d2b256bccb8180b9c692b44 (patch)
tree9f2c2f01c0d54937cb8fde7176b45a58afd84428
parentMerge pull request #368 from python-discord/precommit-fix (diff)
parentAdd mutes as an appealable infraction (diff)
Merge pull request #370 from python-discord/appeals
Add Appeals E-mail to Infraction DMs
-rw-r--r--bot/cogs/moderation.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py
index 5d8aa0217..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,6 +1303,9 @@ class Moderation(Scheduler):
embed.title = f"Please review our rules over at {RULES_URL}"
embed.url = RULES_URL
+ 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)
async def notify_pardon(