diff --git a/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js b/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js index f6b339cdf..15f7524a4 100644 --- a/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js +++ b/public/scripts/extensions/quick-reply/src/SlashCommandHandler.js @@ -419,30 +419,35 @@ export class SlashCommandHandler { namedArgumentList: [ SlashCommandNamedArgument.fromProps({ name: 'set', - description: 'QR set name', + description: 'Name of QR set to add the context menu to', typeList: [ARGUMENT_TYPE.STRING], isRequired: true, enumProvider: localEnumProviders.qrSets, }), SlashCommandNamedArgument.fromProps({ name: 'label', - description: 'Quick Reply label', + description: 'Label of Quick Reply to add the context menu to', typeList: [ARGUMENT_TYPE.STRING], enumProvider: localEnumProviders.qrEntries, }), SlashCommandNamedArgument.fromProps({ name: 'id', - description: 'numeric ID of the QR, e.g., id=42', + description: 'Numeric ID of Quick Reply to add the context menu to, e.g. id=42', typeList: [ARGUMENT_TYPE.NUMBER], enumProvider: localEnumProviders.qrIds, }), new SlashCommandNamedArgument( - 'chain', 'boolean', [ARGUMENT_TYPE.BOOLEAN], false, false, 'false', + 'chain', + 'If true, button QR is sent together with (before) the clicked QR from the context menu', + [ARGUMENT_TYPE.BOOLEAN], + false, + false, + 'false', ), ], unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'QR set name', + description: 'Name of QR set to add as a context menu', typeList: [ARGUMENT_TYPE.STRING], isRequired: true, enumProvider: localEnumProviders.qrSets, @@ -450,13 +455,16 @@ export class SlashCommandHandler { ], helpString: `
id
and label
are both provided, id
will be used.
/qr-contextadd set=MyPreset label=MyButton chain=true MyOtherPreset
+ /qr-contextadd set=MyQRSetWithTheButton label=MyButton chain=true MyQRSetWithContextItems
id
and label
are both provided, id
will be used.
+ id
and a label are both provided, id
will be used.
+