diff options
| author | 2022-01-21 21:35:49 +0000 | |
|---|---|---|
| committer | 2022-01-25 09:44:19 +0000 | |
| commit | 07211bb6eaec2b18a5e13fdfc08ed0f4697a72b6 (patch) | |
| tree | 0838ebab1bec90c0ff3f12e041c127148d05849a | |
| parent | Refactor voice_ban function definitions to voice_mute (diff) | |
Add voice_ban stub commands
These stub commands are useful for moderators during the change over from voice_ban to voice_mute, to remind moderators that the command has been changed now.
| -rw-r--r-- | bot/exts/moderation/infraction/infractions.py | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/bot/exts/moderation/infraction/infractions.py b/bot/exts/moderation/infraction/infractions.py index d6580bc14..7c0259b8e 100644 --- a/bot/exts/moderation/infraction/infractions.py +++ b/bot/exts/moderation/infraction/infractions.py @@ -107,6 +107,17 @@ class Infractions(InfractionScheduler, commands.Cog):          """          await self.apply_ban(ctx, user, reason, 1, expires_at=duration) +    @command(aliases=("vban",)) +    async def voiceban(self, ctx: Context) -> None: +        """ +        NOT IMPLEMENTED. + +        Permanently ban a user from joining voice channels. + +        If duration is specified, it temporarily voice bans that user for the given duration. +        """ +        await ctx.send(":x: This command is not yet implemented. Maybe you meant to use `voicemute`?") +      @command(aliases=("vmute",))      async def voicemute(          self, @@ -185,6 +196,15 @@ class Infractions(InfractionScheduler, commands.Cog):          """          await self.apply_ban(ctx, user, reason, expires_at=duration) +    @command(aliases=("tempvban", "tvban")) +    async def tempvoiceban(self, ctx: Context) -> None: +        """ +        NOT IMPLEMENTED. + +        Temporarily voice bans that user for the given duration. +        """ +        await ctx.send(":x: This command is not yet implemented. Maybe you meant to use `tempvoicemute`?") +      @command(aliases=("tempvmute", "tvmute"))      async def tempvoicemute(          self, @@ -270,6 +290,15 @@ class Infractions(InfractionScheduler, commands.Cog):          """Prematurely end the active ban infraction for the user."""          await self.pardon_infraction(ctx, "ban", user) +    @command(aliases=("uvban",)) +    async def unvoiceban(self, ctx: Context) -> None: +        """ +        NOT IMPLEMENTED. + +        Temporarily voice bans that user for the given duration. +        """ +        await ctx.send(":x: This command is not yet implemented. Maybe you meant to use `unvoicemute`?") +      @command(aliases=("uvmute",))      async def unvoicemute(self, ctx: Context, user: UnambiguousMemberOrUser) -> None:          """Prematurely end the active voice mute infraction for the user.""" | 
