Update /bg docs to match the actual command
| @@ -139,9 +139,8 @@ export function initDefaultSlashCommands() { | ||
| 139 | 139 | returns: 'the current background', |
| 140 | 140 | unnamedArgumentList: [ |
| 141 | 141 | SlashCommandArgument.fromProps({ |
| 142 | 142 | description: 'background filename', |
| 143 | 143 | typeList: [ARGUMENT_TYPE.STRING], |
| 144 | - isRequired: true, | |
| 145 | 144 | enumProvider: () => [...document.querySelectorAll('.bg_example')] |
| 146 | 145 | .map(it => new SlashCommandEnumValue(it.getAttribute('bgfile'))) |
| 147 | 146 | .filter(it => it.value?.length), |
| @@ -152,11 +151,17 @@ export function initDefaultSlashCommands() { | ||
| 152 | 151 | Sets a background according to the provided filename. Partial names allowed. |
| 153 | 152 | </div> |
| 154 | 153 | <div> |
| 154 | + If no background is provided, this will return the currently selected background. | |
| 155 | + </div> | |
| 156 | + <div> | |
| 155 | 157 | <strong>Example:</strong> |
| 156 | 158 | <ul> |
| 157 | 159 | <li> |
| 158 | 160 | <pre><code>/bg beach.jpg</code></pre> |
| 159 | 161 | </li> |
| 162 | + <li> | |
| 163 | + <pre><code>/bg</code></pre> | |
| 164 | + </li> | |
| 160 | 165 | </ul> |
| 161 | 166 | </div> |
| 162 | 167 | `, |