aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/userInfo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info/userInfo.ts')
-rw-r--r--src/commands/info/userInfo.ts29
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)