aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-11-26 17:48:27 +0100
committerGravatar GitHub <[email protected]>2020-11-26 17:48:27 +0100
commite164da7fe56159e13c63880a8f83ea4290c6b3e7 (patch)
tree9668515b702d9686b663f736439f35fb492d3772
parentAdd Mark as a code owner of CI and Docker files (diff)
parentAdd voice_ban to supported types of the scheduler (diff)
Merge pull request #1307 from python-discord/sebastiaan/bugs/add-voiceban-to-scheduler-types
Add voice_ban to supported types of the infraction scheduler
-rw-r--r--bot/exts/moderation/infraction/infractions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py
index 746d4e154..6056df1d2 100644
--- a/bot/exts/moderation/infraction/infractions.py
+++ b/bot/exts/moderation/infraction/infractions.py
@@ -27,7 +27,7 @@ class Infractions(InfractionScheduler, commands.Cog):
category_description = "Server moderation tools."
def __init__(self, bot: Bot):
- super().__init__(bot, supported_infractions={"ban", "kick", "mute", "note", "warning"})
+ super().__init__(bot, supported_infractions={"ban", "kick", "mute", "note", "warning", "voice_ban"})
self.category = "Moderation"
self._muted_role = discord.Object(constants.Roles.muted)