3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Code style tweak

This commit is contained in:
Dragory 2020-05-22 21:19:14 +03:00
parent 3ae339d6b2
commit c7ca79e14d

View file

@ -633,14 +633,11 @@ export class MutesPlugin extends ZeppelinPlugin<TConfigSchema> {
if (failed.length !== args.userIds.length) { if (failed.length !== args.userIds.length) {
this.sendSuccessMessage(msg.channel, `**${args.userIds.length - failed.length} active mute(s) cleared**`); this.sendSuccessMessage(msg.channel, `**${args.userIds.length - failed.length} active mute(s) cleared**`);
} }
if (failed.length) { if (failed.length) {
let list = "";
for (const id of failed) {
list += id + " ";
}
this.sendErrorMessage( this.sendErrorMessage(
msg.channel, msg.channel,
`**${failed.length}/${args.userIds.length} IDs failed**, they are not muted: ${list}`, `**${failed.length}/${args.userIds.length} IDs failed**, they are not muted: ${failed.join(" ")}`,
); );
} }
} }