From abcafe76284d190e41941571999e280b402bd8e1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Nov 2021 14:28:54 +0000 Subject: Automatically format code --- src/commands/moderation/removeReactionEmoji.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/commands/moderation/removeReactionEmoji.ts') 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; -- cgit