From e610644a3e8773cc9d5da1e0ec2256b89af02a5e Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 19 Sep 2021 08:39:25 -0700 Subject: [PATCH] Added osu! commands --- src/utils/DiscordInteraction.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/utils/DiscordInteraction.ts b/src/utils/DiscordInteraction.ts index 8052ccd..032730c 100644 --- a/src/utils/DiscordInteraction.ts +++ b/src/utils/DiscordInteraction.ts @@ -91,6 +91,28 @@ GUILD_COMMANDS.push(new SlashCommandBuilder() .setDescription('Create greeting message for membership screening into the channel. A message for new commers to read') ) ); +GUILD_COMMANDS.push(new SlashCommandBuilder() + .setName('osu') + .setDescription('Interact with the game osu!') + .addSubcommand(user => user + .setName('user') + .setDescription('Get user information on osu!') + .addStringOption(user => user + .setName('user') + .setDescription('Username or User id') + .setRequired(true) + ) + ) + .addSubcommand(beatmap => beatmap + .setName('beatmap') + .setDescription('Get beatmap information on osu!') + .addStringOption(user => user + .setName('beatmap') + .setDescription('Beatmap id') + .setRequired(true) + ) + ) +); export const registerAllGlobalCommands = async () => { Logger.log('info', `Registering all global interaction commands`);