From 8e089192060d889910e71a2e6715237a46d264c7 Mon Sep 17 00:00:00 2001 From: Sheeley7 <5257942+Sheeley7@users.noreply.github.com> Date: Sun, 28 Apr 2024 17:11:35 -0400 Subject: Added config to make add to queue responses for requester only (#1021) Co-authored-by: Max Isom --- src/commands/config.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/commands') diff --git a/src/commands/config.ts b/src/commands/config.ts index a2bfe93..0019a7a 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -33,6 +33,13 @@ export default class implements Command { .setName('value') .setDescription('whether to leave when everyone else leaves') .setRequired(true))) + .addSubcommand(subcommand => subcommand + .setName('set-queue-add-response-hidden') + .setDescription('set whether bot responses to queue additions are only displayed to the requester') + .addBooleanOption(option => option + .setName('value') + .setDescription('whether bot responses to queue additions are only displayed to the requester') + .setRequired(true))) .addSubcommand(subcommand => subcommand .setName('set-auto-announce-next-song') .setDescription('set whether to announce the next song in the queue automatically') @@ -113,6 +120,23 @@ export default class implements Command { break; } + case 'set-queue-add-response-eph': { + const value = interaction.options.getBoolean('value')!; + + await prisma.setting.update({ + where: { + guildId: interaction.guild!.id, + }, + data: { + queueAddResponseEphemeral: value, + }, + }); + + await interaction.reply('👍 queue add notification setting updated'); + + break; + } + case 'set-auto-announce-next-song': { const value = interaction.options.getBoolean('value')!; @@ -159,6 +183,7 @@ export default class implements Command { : `${config.secondsToWaitAfterQueueEmpties}s`, 'Leave if there are no listeners': config.leaveIfNoListeners ? 'yes' : 'no', 'Auto announce next song in queue': config.autoAnnounceNextSong ? 'yes' : 'no', + 'Add to queue reponses show for requester only': config.autoAnnounceNextSong ? 'yes' : 'no', 'Default Volume': config.defaultVolume, }; -- cgit v1.2.3