aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-06-09 13:46:42 -0700
committerGravatar MarkKoz <[email protected]>2019-06-09 13:46:42 -0700
commitba3bf4030945bbdf3ac0ffc4acdf542de4d92759 (patch)
tree4557a5f3b3bc93868081f1b38bccd6f98eb27260
parentUpdates the cog list and cog batch load/unloads to use status_indicator emoji... (diff)
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 9db5d9d62..256d38866 100644
--- a/bot/cogs/moderation.py
+++ b/bot/cogs/moderation.py
@@ -30,6 +30,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:
@@ -1173,6 +1174,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(