diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 166c72596..34542f067 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -847,6 +847,12 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'messages', new SlashCommandNamedArgument( 'names', 'show message author names', [ARGUMENT_TYPE.BOOLEAN], false, false, 'off', ['off', 'on'], ), + new SlashCommandNamedArgument( + 'hidden', 'include hidden messages', [ARGUMENT_TYPE.BOOLEAN], false, false, 'on', ['off', 'on'], + ), + new SlashCommandNamedArgument( + 'role', 'filter messages by role' , [ARGUMENT_TYPE.STRING], false, false, null, ['system', 'assistant', 'user'], + ), ], unnamedArgumentList: [ new SlashCommandArgument( @@ -858,6 +864,12 @@ SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'messages',
Returns the specified message or range of messages as a string.
+
+ Use the hidden=off argument to exclude hidden messages. +
+
+ Use the role argument to filter messages by role. Possible values are: system, assistant, user. +
Examples: