aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/removeReactionEmoji.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 16:16:44 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 16:16:44 -0400
commit4364f1d344e75d23728ce951fc768bc9c8405bed (patch)
tree47dbdb0482fc16842271c44e3736ba86e0064351 /src/commands/moderation/removeReactionEmoji.ts
parent95dc4c4a4abeed75f419c9ccd5b3f072609c5035 (diff)
downloadtanzanite-4364f1d344e75d23728ce951fc768bc9c8405bed.tar.gz
tanzanite-4364f1d344e75d23728ce951fc768bc9c8405bed.tar.bz2
tanzanite-4364f1d344e75d23728ce951fc768bc9c8405bed.zip
cleaned up, wolfram alpha command, a few fixes
Diffstat (limited to 'src/commands/moderation/removeReactionEmoji.ts')
-rw-r--r--src/commands/moderation/removeReactionEmoji.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/moderation/removeReactionEmoji.ts b/src/commands/moderation/removeReactionEmoji.ts
index 4dfd074..34073e6 100644
--- a/src/commands/moderation/removeReactionEmoji.ts
+++ b/src/commands/moderation/removeReactionEmoji.ts
@@ -1,5 +1,5 @@
import { BushCommand, BushMessage } from '@lib';
-import { Emoji } from 'discord.js';
+import { Emoji, Snowflake } from 'discord.js';
export default class RemoveReactionEmojiCommand extends BushCommand {
public constructor() {
@@ -24,7 +24,7 @@ export default class RemoveReactionEmojiCommand extends BushCommand {
},
{
id: 'emoji',
- customType: util.arg.union('emoji', 'bigint'),
+ customType: util.arg.union('emoji', 'snowflake'),
match: 'restContent',
prompt: {
start: 'What emoji would you like to remove?',
@@ -38,9 +38,9 @@ export default class RemoveReactionEmojiCommand extends BushCommand {
public override async exec(
message: BushMessage,
- { messageToRemoveFrom, emoji }: { messageToRemoveFrom: BushMessage; emoji: Emoji | BigInt }
+ { messageToRemoveFrom, emoji }: { messageToRemoveFrom: BushMessage; emoji: Emoji | Snowflake }
): Promise<unknown> {
- const id = !['bigint', 'string'].includes(typeof emoji);
+ const id = !['string'].includes(typeof emoji);
const emojiID = !id ? `${emoji}` : (emoji as Emoji).id;
const success = await messageToRemoveFrom.reactions.cache
?.get(emojiID!)