Added user info

This commit is contained in:
2021-09-20 12:37:38 -07:00
parent 2b33287876
commit 44aa2df166
2 changed files with 172 additions and 0 deletions
+15
View File
@@ -114,6 +114,21 @@ GUILD_COMMANDS.push(new SlashCommandBuilder()
)
);
GUILD_COMMANDS.push(new SlashCommandBuilder()
.setName('userinfo')
.setDescription('Lookup discord user information')
.addSubcommand(user => user
.setName('user')
.setDescription('Lookup discord user information')
.addUserOption(user => user
.setName('user')
.setDescription('Discord user to lookup')
.setRequired(true)
)
)
);
export const registerAllGlobalCommands = async () => {
Logger.log('info', `Registering all global interaction commands`);
await DiscordProvider.client.application?.commands.set(JSON.parse(JSON.stringify(GLOBAL_COMMANDS)));