From c02dd6fd18fa39d21897660238d17dc76619e82d Mon Sep 17 00:00:00 2001 From: Histmy <59661489+Histmy@users.noreply.github.com> Date: Thu, 23 Sep 2021 12:13:52 +0200 Subject: [PATCH] Fix embeds not sent --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 85e5307..cca07bd 100644 --- a/src/app.ts +++ b/src/app.ts @@ -95,7 +95,7 @@ client.on("messageCreate", async mes => { const akce = cmd.run; if (typeof akce === "string") return void mes.channel.send(akce); const result = await akce(celArgs, mes); - if (typeof result == "string") mes.channel.send(result); + if (result && !(result instanceof Promise)) mes.channel.send(result); }); client.login(process.env.token);