aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/pronouns.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/info/pronouns.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/info/pronouns.ts')
-rw-r--r--src/commands/info/pronouns.ts5
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