From e6995e40ccbb24ef006ef03a8123fac8f08cc573 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Thu, 18 Jul 2024 18:47:13 +0200 Subject: [PATCH] Update /qr-delete help string and add missing arg - Fixes #2527 --- .../extensions/quick-reply/src/SlashCommandHandler.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js b/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js index a2c54e9ee..0f3829e84 100644 --- a/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js +++ b/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js @@ -316,7 +316,14 @@ export class SlashCommandHandler { enumProvider: localEnumProviders.qrEntries, }), ], - helpString: 'Deletes a Quick Reply from the specified set. If no label is provided, the entire set is deleted.', + unnamedArgumentList: [ + SlashCommandArgument.fromProps({ + description: 'label', + typeList: [ARGUMENT_TYPE.STRING], + enumProvider: localEnumProviders.qrEntries, + }), + ], + helpString: 'Deletes a Quick Reply from the specified set. (Label must be provided via named or unnamed argument)', })); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'qr-contextadd', callback: (args, name) => {