diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-28 09:27:41 -0500 |
commit | 453683b57b8ff013ff25e2aaa4aa1d2e047edcb7 (patch) | |
tree | 8b98d2f30dbb6a8448602446cfacf9091667cc33 /src/commands/info/userInfo.ts | |
parent | de4c3dcaf172804d34ae708be1ed3e75af42f4d5 (diff) | |
download | tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.gz tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.tar.bz2 tanzanite-453683b57b8ff013ff25e2aaa4aa1d2e047edcb7.zip |
a few small changes
Diffstat (limited to 'src/commands/info/userInfo.ts')
-rw-r--r-- | src/commands/info/userInfo.ts | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index 601e044..8ed6304 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -7,31 +7,22 @@ export default class UserInfoCommand extends BushCommand { super('userInfo', { aliases: ['user-info', 'user', 'u'], category: 'info', - description: { - content: 'Gives information about a specified user.', - usage: ['user-info [user]'], - examples: ['user-info 322862723090219008'] - }, + description: 'Gives information about a specified user.', + usage: ['user-info [user]'], + examples: ['user-info 322862723090219008'], args: [ { id: 'user', + description: 'The user you would like to find information about.', 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.', - optional: true - } + readableType: 'user|snowflake', + prompt: 'What user would you like to find information about?', + retry: '{error} Choose a valid user to find information about.', + optional: true, + slashType: 'USER' } ], slash: true, - slashOptions: [ - { - name: 'user', - description: 'The user you would like to find information about.', - type: 'USER', - required: false - } - ], clientPermissions: (m) => util.clientSendAndPermCheck(m, ['EMBED_LINKS'], true), userPermissions: [] }); @@ -108,7 +99,7 @@ export default class UserInfoCommand extends BushCommand { if (member?.displayHexColor) serverUserInfo.push(`**Display Color:** ${member.displayHexColor}`); if (user.id == '322862723090219008' && message.guild?.id == client.consts.mappings.guilds.bush) serverUserInfo.push(`**General Deletions:** 1⅓`); - if (['384620942577369088', '496409778822709251'].includes(user.id) && message.guild?.id == client.consts.mappings.guilds.bush) + if ((['384620942577369088', '496409778822709251'] as const).includes(user.id) && message.guild?.id == client.consts.mappings.guilds.bush) serverUserInfo.push(`**General Deletions:** ⅓`); if (member?.nickname) serverUserInfo.push(`**Nickname:** ${util.discord.escapeMarkdown(member?.nickname)}`); if (serverUserInfo.length) |