mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add opt-in for rawQuotes in SlashCommand registration
Closes #2739 Supersedes #2921
This commit is contained in:
@ -227,6 +227,7 @@ export function initDefaultSlashCommands() {
|
||||
}));
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'sendas',
|
||||
rawQuotes: true,
|
||||
callback: sendMessageAs,
|
||||
returns: 'Optionally the text of the sent message, if specified in the "return" argument',
|
||||
namedArgumentList: [
|
||||
@ -293,6 +294,7 @@ export function initDefaultSlashCommands() {
|
||||
}));
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'sys',
|
||||
rawQuotes: true,
|
||||
callback: sendNarratorMessage,
|
||||
aliases: ['nar'],
|
||||
returns: 'Optionally the text of the sent message, if specified in the "return" argument',
|
||||
@ -357,6 +359,7 @@ export function initDefaultSlashCommands() {
|
||||
}));
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'comment',
|
||||
rawQuotes: true,
|
||||
callback: sendCommentMessage,
|
||||
returns: 'Optionally the text of the sent message, if specified in the "return" argument',
|
||||
namedArgumentList: [
|
||||
@ -574,6 +577,7 @@ export function initDefaultSlashCommands() {
|
||||
}));
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'send',
|
||||
rawQuotes: true,
|
||||
callback: sendUserMessageCallback,
|
||||
returns: 'Optionally the text of the sent message, if specified in the "return" argument',
|
||||
namedArgumentList: [
|
||||
@ -936,6 +940,7 @@ export function initDefaultSlashCommands() {
|
||||
}));
|
||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||
name: 'echo',
|
||||
rawQuotes: true,
|
||||
callback: echoCallback,
|
||||
returns: 'the text',
|
||||
namedArgumentList: [
|
||||
|
Reference in New Issue
Block a user