aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-02-23 21:13:34 +0000
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-02-23 21:13:34 +0000
commitb2d7213fffe5512b76e252fe86c9bf6f45514906 (patch)
tree3b85df8927187bcba520058c4913136f1fd100db /src/commands/moderation
parent00d447d2e2e4d04079a1f4ac004694d93ae505b7 (diff)
downloadtanzanite-b2d7213fffe5512b76e252fe86c9bf6f45514906.tar.gz
tanzanite-b2d7213fffe5512b76e252fe86c9bf6f45514906.tar.bz2
tanzanite-b2d7213fffe5512b76e252fe86c9bf6f45514906.zip
Automatically format code
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/massBan.ts16
1 files changed, 9 insertions, 7 deletions
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 });
}