aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-06-12 13:25:02 +0200
committerGravatar kwzrd <[email protected]>2020-06-12 13:25:02 +0200
commit3195d16cf16f80dca6b66b87bc7b954d10d60e7a (patch)
tree72d7cba40e270e298478f740422c18fec9026cbe
parentIncidents: define allowed roles and emoji (diff)
Incidents: define method stubs for message event handling
-rw-r--r--bot/cogs/moderation/incidents.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bot/cogs/moderation/incidents.py b/bot/cogs/moderation/incidents.py
index 49180da7c..c85a68a14 100644
--- a/bot/cogs/moderation/incidents.py
+++ b/bot/cogs/moderation/incidents.py
@@ -1,6 +1,7 @@
import logging
from enum import Enum
+import discord
from discord.ext.commands import Cog
from bot.bot import Bot
@@ -26,3 +27,12 @@ class Incidents(Cog):
def __init__(self, bot: Bot) -> None:
self.bot = bot
+
+ async def add_signals(self, incident: discord.Message) -> None:
+ """Add `Signal` member emoji to `incident` as reactions."""
+ ...
+
+ @Cog.listener()
+ async def on_message(self, message: discord.Message) -> None:
+ """Pass each incident sent in #incidents to `add_signals`."""
+ ...