Add some extra logging for failed role removals on unmute

This commit is contained in:
Dragory 2019-05-02 08:22:39 +03:00
parent 1e2b68119c
commit bef5f75c87

View file

@ -262,6 +262,10 @@ export class MutesPlugin extends ZeppelinPlugin<IMutesPluginConfig> {
if (member.roles.includes(muteRole)) {
await member.removeRole(muteRole);
}
} else {
logger.warn(
`Member ${userId} not found in guild ${this.guild.name} (${this.guildId}) when attempting to unmute`,
);
}
await this.mutes.clear(userId);