From 49f411b9faad46832184e77f7f5c68c29c9d857d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 4 Sep 2024 21:18:22 +0300 Subject: [PATCH] No need to async when returning promise --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 24dd839f6..c571abd8e 100644 --- a/public/script.js +++ b/public/script.js @@ -9181,7 +9181,7 @@ jQuery(async function () { })); SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'tempchat', - callback: async () => { + callback: () => { return new Promise((resolve, reject) => { const eventCallback = async (chatId) => { if (chatId) {