diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-25 16:16:44 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-25 16:16:44 -0400 |
commit | 4364f1d344e75d23728ce951fc768bc9c8405bed (patch) | |
tree | 47dbdb0482fc16842271c44e3736ba86e0064351 /src/commands/info/pronouns.ts | |
parent | 95dc4c4a4abeed75f419c9ccd5b3f072609c5035 (diff) | |
download | tanzanite-4364f1d344e75d23728ce951fc768bc9c8405bed.tar.gz tanzanite-4364f1d344e75d23728ce951fc768bc9c8405bed.tar.bz2 tanzanite-4364f1d344e75d23728ce951fc768bc9c8405bed.zip |
cleaned up, wolfram alpha command, a few fixes
Diffstat (limited to 'src/commands/info/pronouns.ts')
-rw-r--r-- | src/commands/info/pronouns.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/info/pronouns.ts b/src/commands/info/pronouns.ts index 96040c0..ea20d41 100644 --- a/src/commands/info/pronouns.ts +++ b/src/commands/info/pronouns.ts @@ -1,4 +1,5 @@ import { BushCommand, BushMessage, BushSlashMessage } from '@lib'; +import { Snowflake } from 'discord-api-types'; import { MessageEmbed, User } from 'discord.js'; import got, { HTTPError } from 'got'; @@ -40,7 +41,7 @@ export default class PronounsCommand extends BushCommand { args: [ { id: 'user', - customType: util.arg.union('user', 'bigint'), + customType: util.arg.union('user', 'snowflake'), prompt: { start: 'Who would you like to view the pronouns of?', retry: '{error} Choose a valid user to view the pronouns of.', @@ -60,7 +61,7 @@ export default class PronounsCommand extends BushCommand { slash: true }); } - override async exec(message: BushMessage | BushSlashMessage, args: { user?: User | string }): Promise<unknown> { + override async exec(message: BushMessage | BushSlashMessage, args: { user?: User | Snowflake }): Promise<unknown> { const user = args?.user === undefined || args?.user === null ? message.author |