const { gamesArray } = require("./browse.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("play")
.setDescription("Play a game.")
.addStringOption((option) =>
option
.setName("id")
.setDescription("The ID of the game to play.")
.setRequired(true)
.addChoices(...gamesArray)
),
const { gamesArray } = require("./browse.js");
module.exports = {
data: new SlashCommandBuilder()
.setName("play")
.setDescription("Play a game.")
.addStringOption((option) =>
option
.setName("id")
.setDescription("The ID of the game to play.")
.setRequired(true)
.addChoices(...gamesArray)
),