Fix embeds not sent

This commit is contained in:
Histmy 2021-09-23 12:13:52 +02:00
parent a56efb1442
commit c02dd6fd18

View File

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