From ed12d116edd932f3bf69bcbb3d61d89f8359725f Mon Sep 17 00:00:00 2001 From: Mirasaki Date: Thu, 11 Jan 2024 21:38:50 +0100 Subject: [PATCH 1/2] fix: dont invalidate unknown interactions --- src/listeners/interaction/interactionCreate.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/listeners/interaction/interactionCreate.js b/src/listeners/interaction/interactionCreate.js index 39fa5b8..94d5e89 100644 --- a/src/listeners/interaction/interactionCreate.js +++ b/src/listeners/interaction/interactionCreate.js @@ -81,11 +81,6 @@ const runCommand = (client, interaction, activeId, cmdRunTimeStart) => { // Check for late API changes if (!clientCmd) { - if (clientCanReply) interaction.reply({ - content: `${ emojis.error } ${ member }, this command currently isn't available.`, - ephemeral: true - }); - logger.syserr(`Missing interaction listener for "${ activeId }" (name for commands, customId for components - ignored if starts with "@")`); return; } From 229199ea6d3a5a138fb2bf2f2917956456832c7a Mon Sep 17 00:00:00 2001 From: Mirasaki Date: Thu, 11 Jan 2024 21:41:22 +0100 Subject: [PATCH 2/2] feat: display prio queue public options --- src/commands/admin/priority-queue.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/commands/admin/priority-queue.js b/src/commands/admin/priority-queue.js index fe66994..8613f8b 100644 --- a/src/commands/admin/priority-queue.js +++ b/src/commands/admin/priority-queue.js @@ -47,7 +47,16 @@ module.exports = new ChatInputCommand({ name: 'view', description: 'Display the current configuration', type: ApplicationCommandOptionType.Subcommand, - options: [ requiredServerConfigCommandOption, steam64Option ] + options: [ + requiredServerConfigCommandOption, + steam64Option, + { + name: 'public', + description: 'Whether to display the priority queue embed publicly', + type: ApplicationCommandOptionType.Boolean, + required: false + } + ] }, { name: 'add', @@ -74,12 +83,13 @@ module.exports = new ChatInputCommand({ const { guild, options } = interaction; const { emojis } = client.container; const subcommand = options.getSubcommand(); + const showPublic = options.getBoolean('public') ?? false; // Check if a proper server option is provided const serverCfg = getServerConfigCommandOptionValue(interaction); // Deferring our reply - await interaction.deferReply({ ephemeral: true }); + await interaction.deferReply({ ephemeral: !showPublic }); const entryEmbed = ({ steam64, cftoolsId, entry