diff options
| author | 2020-11-26 17:16:55 +0100 | |
|---|---|---|
| committer | 2020-11-26 17:16:55 +0100 | |
| commit | 8c2e7ed9026219ecc6fdd528c1bfe55b5dc7700f (patch) | |
| tree | 9668515b702d9686b663f736439f35fb492d3772 | |
| parent | Add Mark as a code owner of CI and Docker files (diff) | |
Add voice_ban to supported types of the scheduler
The `voice_ban` infraction was not listed as a supported type for the
infraction scheduler. This meant that the scheduler did not schedule the
expiry of `voice_ban` infractions after a restart. Those unlucky users
were voice-banned perpetually.
| -rw-r--r-- | bot/exts/moderation/infraction/infractions.py | 2 |
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) |