subscribe update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user