mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Added user info
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user