mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Added osu! commands
This commit is contained in:
@@ -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')
|
.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 () => {
|
export const registerAllGlobalCommands = async () => {
|
||||||
Logger.log('info', `Registering all global interaction commands`);
|
Logger.log('info', `Registering all global interaction commands`);
|
||||||
|
|||||||
Reference in New Issue
Block a user