mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-21 22:47:41 +01:00
Update /bg docs to match the actual command
This commit is contained in:
parent
c2e6903b30
commit
6b1045ab52
@ -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() {
|
||||
<div>
|
||||
Sets a background according to the provided filename. Partial names allowed.
|
||||
</div>
|
||||
<div>
|
||||
If no background is provided, this will return the currently selected background.
|
||||
</div>
|
||||
<div>
|
||||
<strong>Example:</strong>
|
||||
<ul>
|
||||
<li>
|
||||
<pre><code>/bg beach.jpg</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<pre><code>/bg</code></pre>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user