slash commands not break denim again
This commit is contained in:
parent
cd83efa392
commit
e449ee1e62
@ -289,6 +289,13 @@ client.on("messageCreate", async mes => {
|
|||||||
const komand = client.komandy[cmdName];
|
const komand = client.komandy[cmdName];
|
||||||
if (mes.channel.type == ChannelType.DM && komand?.DMUnsafe) return void mes.channel.send("tuten komand bohuzel v sz nefunkuje");
|
if (mes.channel.type == ChannelType.DM && komand?.DMUnsafe) return void mes.channel.send("tuten komand bohuzel v sz nefunkuje");
|
||||||
|
|
||||||
|
if (komand.slashRun) {
|
||||||
|
const nazev = `${prefix}${cmdName}`;
|
||||||
|
const id = client.slashCommandy[nazev];
|
||||||
|
return void mes.channel.send(`tuto ejenom sleh komand </${nazev}:${id}>`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (komand) return void runKomand(mes, komand, cmdName, celArgs);
|
if (komand) return void runKomand(mes, komand, cmdName, celArgs);
|
||||||
|
|
||||||
// neměl jsi na mysli?
|
// neměl jsi na mysli?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user