From ce19c4a136b97194ccddc2ff7818992413ce6211 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 23 Apr 2023 13:16:58 +0700 Subject: [PATCH] Added VRChat slash commands --- src/utils/DiscordInteraction.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/utils/DiscordInteraction.ts b/src/utils/DiscordInteraction.ts index 758b8a8..a63e0fd 100644 --- a/src/utils/DiscordInteraction.ts +++ b/src/utils/DiscordInteraction.ts @@ -58,6 +58,22 @@ export const GLOBAL_COMMANDS: Object[] = [ .setName('beatmap') .setDescription('Get beatmap information on osu!') .addStringOption((user) => user.setName('beatmap').setDescription('Beatmap id').setRequired(true)) + ), + + new SlashCommandBuilder() + .setName('vrchat') + .setDescription('Interact with the VRChat') + .addSubcommand((user) => + user + .setName('user') + .setDescription('Get user information on VRChat') + .addStringOption((user) => user.setName('user').setDescription('Username or User id').setRequired(true)) + ) + .addSubcommand((world) => + world + .setName('world') + .setDescription('Get world information on VRChat') + .addStringOption((user) => user.setName('world').setDescription('World id').setRequired(true)) ) ]; export const GUILD_COMMANDS: Object[] = [];