mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix typo
This commit is contained in:
@ -134,7 +134,7 @@ export class SlashCommandParser {
|
|||||||
|
|
||||||
addCommand(command, callback, aliases, helpString = '', interruptsGeneration = false, purgeFromMessage = true) {
|
addCommand(command, callback, aliases, helpString = '', interruptsGeneration = false, purgeFromMessage = true) {
|
||||||
if (['/', '#'].includes(command[0])) {
|
if (['/', '#'].includes(command[0])) {
|
||||||
throw new Error(`Illegal Name. Slash commandn name cannot begin with "${command[0]}".`);
|
throw new Error(`Illegal Name. Slash command name cannot begin with "${command[0]}".`);
|
||||||
}
|
}
|
||||||
const fnObj = Object.assign(new SlashCommand(), { name:command, callback, helpString, interruptsGeneration, purgeFromMessage, aliases });
|
const fnObj = Object.assign(new SlashCommand(), { name:command, callback, helpString, interruptsGeneration, purgeFromMessage, aliases });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user