new commands update for the bot
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// deploycommands.js
|
||||
|
||||
// deploy-commands.js
|
||||
const { REST, Routes, SlashCommandBuilder } = require('discord.js');
|
||||
require('dotenv').config();
|
||||
|
||||
@@ -18,7 +17,17 @@ const commands = [
|
||||
option.setName('game')
|
||||
.setDescription('Specify a game to view stats for')
|
||||
.setRequired(false)),
|
||||
// Add more commands here
|
||||
new SlashCommandBuilder()
|
||||
.setName('matchhistory')
|
||||
.setDescription('View match history')
|
||||
.addStringOption(option =>
|
||||
option.setName('username')
|
||||
.setDescription('The username to search for')
|
||||
.setRequired(true))
|
||||
.addStringOption(option =>
|
||||
option.setName('game')
|
||||
.setDescription('Filter by game')
|
||||
.setRequired(false)),
|
||||
];
|
||||
|
||||
const rest = new REST({ version: '10' }).setToken(process.env.BOT_TOKEN);
|
||||
|
||||
Reference in New Issue
Block a user