No need to async when returning promise

This commit is contained in:
Cohee 2024-09-04 21:18:22 +03:00
parent f262eb256a
commit 49f411b9fa
1 changed files with 1 additions and 1 deletions

View File

@ -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) {