mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
No need to async when returning promise
This commit is contained in:
@ -9181,7 +9181,7 @@ jQuery(async function () {
|
|||||||
}));
|
}));
|
||||||
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
SlashCommandParser.addCommandObject(SlashCommand.fromProps({
|
||||||
name: 'tempchat',
|
name: 'tempchat',
|
||||||
callback: async () => {
|
callback: () => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const eventCallback = async (chatId) => {
|
const eventCallback = async (chatId) => {
|
||||||
if (chatId) {
|
if (chatId) {
|
||||||
|
Reference in New Issue
Block a user