No need to async when returning promise
This commit is contained in:
parent
f262eb256a
commit
49f411b9fa
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue