implemented user alerts for mute updates

This commit is contained in:
roflmaoqwerty 2020-01-15 22:15:39 +11:00
parent 9aa4516a3a
commit 5883121281

View file

@ -188,7 +188,7 @@ export class MutesPlugin extends ZeppelinPlugin<TConfigSchema> {
time: timeUntilUnmute,
}));
if (reason && muteMessage) {
if ((reason && muteMessage) || existingMute) {
if (user instanceof User) {
notifyResult = await notifyUser(this.bot, this.guild, user, muteMessage, {
useDM: config.dm_on_mute,