modrinth command

This commit is contained in:
Ryan Cao 2022-08-29 10:44:40 +08:00
parent bc0725595d
commit 8852026e2c
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
5 changed files with 110 additions and 1 deletions

View file

@ -30,6 +30,12 @@ import 'dotenv/config';
.setRequired(true)
.addChoices(...tags.map((b) => ({ name: b.name, value: b.name })))
),
new SlashCommandBuilder()
.setName('modrinth')
.setDescription('Get info on a Modrinth project')
.addStringOption((option) =>
option.setName('id').setDescription('The ID or slug').setRequired(true)
),
].map((command) => command.toJSON());
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN!);