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.
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