aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/userInfo.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/userInfo.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/userInfo.ts')
-rw-r--r--src/commands/info/userInfo.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index 7b8d7d8..ae204f7 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -1,5 +1,5 @@
import { BushCommand, BushMessage, BushSlashMessage, BushUser } from '@lib';
-import { MessageEmbed } from 'discord.js';
+import { MessageEmbed, Snowflake } from 'discord.js';
// TODO: Add bot information
export default class UserInfoCommand extends BushCommand {
@@ -15,7 +15,7 @@ export default class UserInfoCommand extends BushCommand {
args: [
{
id: 'user',
- customType: util.arg.union('user', 'bigint'),
+ customType: util.arg.union('user', 'snowflake'),
prompt: {
start: 'What user would you like to find information about?',
retry: '{error} Choose a valid user to find information about.',
@@ -38,7 +38,7 @@ export default class UserInfoCommand extends BushCommand {
});
}
- public override async exec(message: BushMessage | BushSlashMessage, args: { user: BushUser | bigint }): Promise<unknown> {
+ public override async exec(message: BushMessage | BushSlashMessage, args: { user: BushUser | Snowflake }): Promise<unknown> {
const user =
args?.user === undefined || args?.user === null
? message.author