aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/dev/superUser.ts2
-rw-r--r--src/commands/info/help.ts10
-rw-r--r--src/commands/info/userInfo.ts5
-rw-r--r--src/commands/leveling/leaderboard.ts2
-rw-r--r--src/commands/moderation/mute.ts2
-rw-r--r--src/commands/moderation/purge.ts2
-rw-r--r--src/commands/moderation/removeReactionEmoji.ts9
7 files changed, 13 insertions, 19 deletions
diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts
index e0328db..f38419f 100644
--- a/src/commands/dev/superUser.ts
+++ b/src/commands/dev/superUser.ts
@@ -20,7 +20,7 @@ export default class SuperUserCommand extends BushCommand {
readableType: 'add|remove',
slashType: false
},
- {
+ {
id: 'user',
description: 'The user to add/remove from the superuser list.',
type: 'user',
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts
index 3b7883f..629e57f 100644
--- a/src/commands/info/help.ts
+++ b/src/commands/info/help.ts
@@ -81,16 +81,10 @@ export default class HelpCommand extends BushCommand {
.setTitle(`${command.id} Command`)
.setDescription(`${command.description ?? '*This command does not have a description.*'}`);
if (command.usage?.length) {
- embed.addField(
- `» Usage${command.usage.length > 1 ? 's' : ''}`,
- command.usage.map((u) => `\`${u}\``).join('\n')
- );
+ embed.addField(`» Usage${command.usage.length > 1 ? 's' : ''}`, command.usage.map((u) => `\`${u}\``).join('\n'));
}
if (command.examples?.length) {
- embed.addField(
- `» Example${command.examples.length > 1 ? 's' : ''}`,
- command.examples.map((u) => `\`${u}\``).join('\n')
- );
+ embed.addField(`» Example${command.examples.length > 1 ? 's' : ''}`, command.examples.map((u) => `\`${u}\``).join('\n'));
}
if (command.aliases?.length > 1) embed.addField('» Aliases', `\`${command.aliases.join('` `')}\``);
if (
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index 8ed6304..89d3c23 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -99,7 +99,10 @@ export default class UserInfoCommand extends BushCommand {
if (member?.displayHexColor) serverUserInfo.push(`**Display Color:** ${member.displayHexColor}`);
if (user.id == '322862723090219008' && message.guild?.id == client.consts.mappings.guilds.bush)
serverUserInfo.push(`**General Deletions:** 1⅓`);
- if ((['384620942577369088', '496409778822709251'] as const).includes(user.id) && message.guild?.id == client.consts.mappings.guilds.bush)
+ if (
+ (['384620942577369088', '496409778822709251'] as const).includes(user.id) &&
+ message.guild?.id == client.consts.mappings.guilds.bush
+ )
serverUserInfo.push(`**General Deletions:** ⅓`);
if (member?.nickname) serverUserInfo.push(`**Nickname:** ${util.discord.escapeMarkdown(member?.nickname)}`);
if (serverUserInfo.length)
diff --git a/src/commands/leveling/leaderboard.ts b/src/commands/leveling/leaderboard.ts
index 7e6eefd..6bf66d1 100644
--- a/src/commands/leveling/leaderboard.ts
+++ b/src/commands/leveling/leaderboard.ts
@@ -17,7 +17,7 @@ export default class LeaderboardCommand extends BushCommand {
prompt: 'What page of the leaderboard would you like to view?',
retry: '{error} Pick a valid argument.',
optional: true,
- slashType: 'INTEGER',
+ slashType: 'INTEGER'
}
],
slash: true,
diff --git a/src/commands/moderation/mute.ts b/src/commands/moderation/mute.ts
index 0584d97..a18c04e 100644
--- a/src/commands/moderation/mute.ts
+++ b/src/commands/moderation/mute.ts
@@ -25,7 +25,7 @@ export default class MuteCommand extends BushCommand {
prompt: 'Why should this user be muted and for how long?',
retry: '{error} Choose a valid mute reason and duration.',
optional: true,
- slashType:'STRING'
+ slashType: 'STRING'
},
{
id: 'force',
diff --git a/src/commands/moderation/purge.ts b/src/commands/moderation/purge.ts
index 6bc62de..21b9a3a 100644
--- a/src/commands/moderation/purge.ts
+++ b/src/commands/moderation/purge.ts
@@ -47,7 +47,7 @@ export default class PurgeCommand extends BushCommand {
});
}
- public override async exec(message: BushMessage, args: { amount: number; bot: boolean, user: BushUser }) {
+ public override async exec(message: BushMessage, args: { amount: number; bot: boolean; user: BushUser }) {
if (message.channel.type === 'DM') return message.util.reply(`${util.emojis.error} You cannot run this command in dms.`);
if (args.amount > 100 || args.amount < 1) return message.util.reply(`${util.emojis.error} `);
diff --git a/src/commands/moderation/removeReactionEmoji.ts b/src/commands/moderation/removeReactionEmoji.ts
index e847aba..d543f60 100644
--- a/src/commands/moderation/removeReactionEmoji.ts
+++ b/src/commands/moderation/removeReactionEmoji.ts
@@ -22,7 +22,7 @@ export default class RemoveReactionEmojiCommand extends BushCommand {
id: 'emoji',
description: 'The emoji to remove all the reactions of from a message.',
customType: util.arg.union('emoji', 'snowflake'),
- readableType:'emoji|snowflake',
+ readableType: 'emoji|snowflake',
match: 'restContent',
prompt: 'What emoji would you like to remove?',
retry: '{error} Please pick a valid emoji.',
@@ -36,11 +36,8 @@ export default class RemoveReactionEmojiCommand extends BushCommand {
});
}
- public override async exec(
- message: BushMessage,
- args: { message: BushMessage|Snowflake; emoji: Emoji | Snowflake }
- ) {
- const resolvedMessage = args.message instanceof Message ? args.message : await message.channel.messages.fetch(args.message )
+ public override async exec(message: BushMessage, args: { message: BushMessage | Snowflake; emoji: Emoji | Snowflake }) {
+ const resolvedMessage = args.message instanceof Message ? args.message : await message.channel.messages.fetch(args.message);
const id = !(['string'] as const).includes(typeof args.emoji);
const emojiID = !id ? `${args.emoji}` : (args.emoji as Emoji).id;