diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index aef81d246..bcf980b02 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -139,9 +139,8 @@ export function initDefaultSlashCommands() { returns: 'the current background', unnamedArgumentList: [ SlashCommandArgument.fromProps({ - description: 'filename', + description: 'background filename', typeList: [ARGUMENT_TYPE.STRING], - isRequired: true, enumProvider: () => [...document.querySelectorAll('.bg_example')] .map(it => new SlashCommandEnumValue(it.getAttribute('bgfile'))) .filter(it => it.value?.length), @@ -151,12 +150,18 @@ export function initDefaultSlashCommands() {
Sets a background according to the provided filename. Partial names allowed.
+
+ If no background is provided, this will return the currently selected background. +
Example:
`,