From c62c1f81e4468f554d3e1faa9d7dd0551925c9ae Mon Sep 17 00:00:00 2001 From: VinceC <33974776+VinceC3@users.noreply.github.com> Date: Sun, 24 Nov 2024 03:25:10 -0600 Subject: [PATCH] Update deploy-commands.js --- deploy-commands.js | 64 ++++++++++++++++++++++++++++++---------------- 1 file changed, 42 insertions(+), 22 deletions(-) diff --git a/deploy-commands.js b/deploy-commands.js index 5e40933..2943243 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -1,4 +1,3 @@ -// deploy-commands.js const { REST, Routes, SlashCommandBuilder } = require('discord.js'); require('dotenv').config(); @@ -28,27 +27,48 @@ const commands = [ option.setName('game') .setDescription('Filter by game') .setRequired(false)), - new SlashCommandBuilder() - .setName('subscribe') - .setDescription('Subscribe to notifications for a game') - .addStringOption(option => - option.setName('game') - .setDescription('The game to subscribe to') - .setRequired(true)) - .addChannelOption(option => - option.setName('channel') - .setDescription('The channel to receive notifications (default: current channel)') - .setRequired(false)), - new SlashCommandBuilder() - .setName('unsubscribe') - .setDescription('Unsubscribe from notifications for a game') - .addStringOption(option => - option.setName('game') - .setDescription('The game to unsubscribe from') - .setRequired(true)), - new SlashCommandBuilder() - .setName('listsubscriptions') - .setDescription('List all active subscriptions for this server'), + // New subscription commands + new SlashCommandBuilder() + .setName('subscribe') + .setDescription('Subscribe to game notifications') + .addStringOption(option => + option.setName('game') + .setDescription('Game to subscribe to') + .setRequired(true) + .addChoices( + { name: 'Big Ballers VR', value: 'Big Ballers VR' }, + { name: 'Blacktop Hoops', value: 'Blacktop Hoops' }, + { name: 'Breachers', value: 'Breachers' }, + { name: 'Echo Arena', value: 'Echo Arena' }, + { name: 'Echo Combat', value: 'Echo Combat' }, + { name: 'Gun Raiders', value: 'Gun Raiders' }, + { name: 'Nock', value: 'Nock' }, + { name: 'VAIL', value: 'VAIL' } + )) + .addChannelOption(option => + option.setName('channel') + .setDescription('Channel for notifications') + .setRequired(true)), + new SlashCommandBuilder() + .setName('unsubscribe') + .setDescription('Unsubscribe from game notifications') + .addStringOption(option => + option.setName('game') + .setDescription('Game to unsubscribe from') + .setRequired(true) + .addChoices( + { name: 'Big Ballers VR', value: 'Big Ballers VR' }, + { name: 'Blacktop Hoops', value: 'Blacktop Hoops' }, + { name: 'Breachers', value: 'Breachers' }, + { name: 'Echo Arena', value: 'Echo Arena' }, + { name: 'Echo Combat', value: 'Echo Combat' }, + { name: 'Gun Raiders', value: 'Gun Raiders' }, + { name: 'Nock', value: 'Nock' }, + { name: 'VAIL', value: 'VAIL' } + )), + new SlashCommandBuilder() + .setName('list_subscriptions') + .setDescription('List all game subscriptions for this server') ]; const rest = new REST({ version: '10' }).setToken(process.env.BOT_TOKEN);