diff --git a/src/app.ts b/src/app.ts index af771dc..6ce486d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -289,6 +289,13 @@ client.on("messageCreate", async mes => { 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 (komand.slashRun) { + const nazev = `${prefix}${cmdName}`; + const id = client.slashCommandy[nazev]; + return void mes.channel.send(`tuto ejenom sleh komand `); + } + + if (komand) return void runKomand(mes, komand, cmdName, celArgs); // neměl jsi na mysli?