subscribe update

This commit is contained in:
VinceC
2024-11-24 03:15:04 -06:00
parent 12722b6fd4
commit 1cee965d00
8 changed files with 447 additions and 72 deletions

View File

@@ -28,6 +28,27 @@ 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'),
];
const rest = new REST({ version: '10' }).setToken(process.env.BOT_TOKEN);