Update deploy-commands.js

This commit is contained in:
VinceC
2024-11-24 03:25:10 -06:00
parent 1cee965d00
commit c62c1f81e4

View File

@@ -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 subscription commands
new SlashCommandBuilder()
.setName('subscribe')
.setDescription('Subscribe to notifications for a game')
.setDescription('Subscribe to game notifications')
.addStringOption(option =>
option.setName('game')
.setDescription('The game to subscribe to')
.setRequired(true))
.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('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')
.setDescription('Channel for notifications')
.setRequired(true)),
new SlashCommandBuilder()
.setName('listsubscriptions')
.setDescription('List all active subscriptions for this server'),
.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);