slash commands not break denim again

This commit is contained in:
Histmy 2024-01-29 22:54:27 +01:00
parent cd83efa392
commit e449ee1e62
Signed by: Histmy
GPG Key ID: AC2E43C463D8F329

View File

@ -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 </${nazev}:${id}>`);
}
if (komand) return void runKomand(mes, komand, cmdName, celArgs);
// neměl jsi na mysli?