aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-28 09:31:11 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-28 09:31:11 -0500
commit5569151f8e02f1ada0d5939b4867bcf8d5e15691 (patch)
treeb4f3e91fdb70bea2da8d3515f9108e87cf455614 /src/commands/moderation
parent193bf9aee438092227197492e3e0375cef19ba3a (diff)
parentb8f56d508d16a9ab492d46b05b0534c4db7c74b8 (diff)
downloadtanzanite-5569151f8e02f1ada0d5939b4867bcf8d5e15691.tar.gz
tanzanite-5569151f8e02f1ada0d5939b4867bcf8d5e15691.tar.bz2
tanzanite-5569151f8e02f1ada0d5939b4867bcf8d5e15691.zip
Merge branch 'master' of https://github.com/NotEnoughUpdates/bush-bot
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/mute.ts2
-rw-r--r--src/commands/moderation/purge.ts2
-rw-r--r--src/commands/moderation/removeReactionEmoji.ts9
3 files changed, 5 insertions, 8 deletions
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;