Update /qr-delete help string and add missing arg - Fixes #2527

e6995e40ccbb24ef006ef03a8123fac8f08cc573

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +8 -1Showing whitespace changes
public/scripts/extensions/quick-reply/src/SlashCommandHandler.js+8 -1
@@ -316,7 +316,14 @@ export class SlashCommandHandler {
316316 enumProvider: localEnumProviders.qrEntries,
317317 }),
318318 ],
319- helpString: 'Deletes a Quick Reply from the specified set. If no label is provided, the entire set is deleted.',
319+ unnamedArgumentList: [
320+ SlashCommandArgument.fromProps({
321+ description: 'label',
322+ typeList: [ARGUMENT_TYPE.STRING],
323+ enumProvider: localEnumProviders.qrEntries,
324+ }),
325+ ],
326+ helpString: 'Deletes a Quick Reply from the specified set. (Label must be provided via named or unnamed argument)',
320327 }));
321328 SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'qr-contextadd',
322329 callback: (args, name) => {