diff options
-rw-r--r-- | src/commands/moderation/massBan.ts | 16 | ||||
-rw-r--r-- | src/commands/utilities/price.ts | 4 |
2 files changed, 12 insertions, 8 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 }); } diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts index d9471d8..0495961 100644 --- a/src/commands/utilities/price.ts +++ b/src/commands/utilities/price.ts @@ -110,7 +110,9 @@ export default class PriceCommand extends BushCommand { const errorEmbed = new Embed(); errorEmbed .setColor(util.colors.error) - .setDescription(`${util.emojis.error} ${util.format.input(parsedItem)} is not a valid item id, or it has no auction data.`); + .setDescription( + `${util.emojis.error} ${util.format.input(parsedItem)} is not a valid item id, or it has no auction data.` + ); return await message.util.reply({ embeds: [errorEmbed] }); } |