Fix embeds not sent
This commit is contained in:
parent
a56efb1442
commit
c02dd6fd18
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user