Update /bg docs to match the actual command

6b1045ab52b1034c186515f59394081b3d1f1c2d

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +7 -2Showing whitespace changes
public/scripts/slash-commands.js+7 -2
@@ -139,9 +139,8 @@ export function initDefaultSlashCommands() {
139139 returns: 'the current background',
140140 unnamedArgumentList: [
141141 SlashCommandArgument.fromProps({
142142 description: 'background filename',
143143 typeList: [ARGUMENT_TYPE.STRING],
144- isRequired: true,
145144 enumProvider: () => [...document.querySelectorAll('.bg_example')]
146145 .map(it => new SlashCommandEnumValue(it.getAttribute('bgfile')))
147146 .filter(it => it.value?.length),
@@ -152,11 +151,17 @@ export function initDefaultSlashCommands() {
152151 Sets a background according to the provided filename. Partial names allowed.
153152 </div>
154153 <div>
154+ If no background is provided, this will return the currently selected background.
155+ </div>
156+ <div>
155157 <strong>Example:</strong>
156158 <ul>
157159 <li>
158160 <pre><code>/bg beach.jpg</code></pre>
159161 </li>
162+ <li>
163+ <pre><code>/bg</code></pre>
164+ </li>
160165 </ul>
161166 </div>
162167 `,