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