Update /qr-delete help string and add missing arg

- Fixes #2527
This commit is contained in:
Wolfsblvt 2024-07-18 18:47:13 +02:00
parent b9e03e9cb1
commit e6995e40cc
1 changed files with 8 additions and 1 deletions

View File

@ -316,7 +316,14 @@ export class SlashCommandHandler {
enumProvider: localEnumProviders.qrEntries, 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', SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'qr-contextadd',
callback: (args, name) => { callback: (args, name) => {