From b2d7213fffe5512b76e252fe86c9bf6f45514906 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 23 Feb 2022 21:13:34 +0000 Subject: Automatically format code --- src/commands/moderation/massBan.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/commands/moderation') diff --git a/src/commands/moderation/massBan.ts b/src/commands/moderation/massBan.ts index 3a613cd..116f066 100644 --- a/src/commands/moderation/massBan.ts +++ b/src/commands/moderation/massBan.ts @@ -97,19 +97,21 @@ export default class MassBanCommand extends BushCommand { const embeds: Embed[] = []; for (let i = 0; i < res.length; i++) { - const embed = ()=> embeds[embeds.push(new Embed().setColor(util.colors.DarkRed))-1] + const embed = () => embeds[embeds.push(new Embed().setColor(util.colors.DarkRed)) - 1]; - const row = `${success(res[i]) ? util.emojis.success : util.emojis.error} ${ids[i]}${success(res[i]) ? '' : ` - ${res[i]}`}` + const row = `${success(res[i]) ? util.emojis.success : util.emojis.error} ${ids[i]}${ + success(res[i]) ? '' : ` - ${res[i]}` + }`; - let currentEmbed = embeds.length ? embeds[embeds.length-1] : embed() + let currentEmbed = embeds.length ? embeds[embeds.length - 1] : embed(); - if (`${currentEmbed.description}\n${row}`.length >= 2048) currentEmbed = embed() - currentEmbed.setDescription(`${currentEmbed.description}\n${row}`) + if (`${currentEmbed.description}\n${row}`.length >= 2048) currentEmbed = embed(); + currentEmbed.setDescription(`${currentEmbed.description}\n${row}`); } - assert(embeds.length >=1) + assert(embeds.length >= 1); - embeds[0].setTitle(`Mass Ban Results`) + embeds[0].setTitle(`Mass Ban Results`); return message.util.send({ embeds }); } -- cgit