mat-1 / forum-sweats

The Discord bot in the Forum Sweats server
https://forumsweats.matdoes.dev
MIT License
9 stars 8 forks source link

Add !editmute #69

Closed antisynth closed 3 years ago

antisynth commented 3 years ago

Command syntax

!editmute user, new length, reason

Reason will be optional.

Errors

If there isn't a specified user, send a message saying that the message author needs to specify a user to change the mute length of and return.

If there isn't a length, send a message saying that the message author needs to specify a new length and return.

If the user they try to change the mute length of isn't muted, send a message saying that the user the message author entered isn't muted and return.

Command

When the command is executed successfully the bot will DM the user saying "Your mute has been extended to {length}" if there isn't a reason, and "Your mute has been extended to {length} for {reason}" if there is one. Then, the bot will change the length of the user's mute to whatever length the message author inputs and will not add a new infraction.

Why tho?

This could be useful in case a staff member enters a length that is far too short or too long, when muting a user that is breaking the rules. Instead of having to change the mute length, and clear the user's recent infraction, they can just use this command to easily change the mute length and not have to deal with clearing a new infraction.

Example

image image image image

antisynth commented 3 years ago

I don't know how to add the "enhancement" and "new command" thingy but that's what this is

mat-1 commented 3 years ago

(Resolved by #70)