Button styl a vordinace fix

This commit is contained in:
Histmy 2024-07-01 18:48:03 +02:00
parent b492c8d478
commit d37e8d0637
Signed by: Histmy
GPG Key ID: AC2E43C463D8F329
2 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ client.on("messageCreate", async mes => {
const komand = nabidka[lookupId];
const cmdName = client.aliasy[komand] ?? komand;
const cmd = client.komandy[cmdName];
radek.components.forEach((btn, i) => btn.setDisabled() && (i == lookupId && btn.setStyle(ButtonStyle.Primary)));
radek.components.forEach((btn, i) => btn.setDisabled() && (i == lookupId && btn.setStyle(ButtonStyle.Success)));
i.update({ content: `ok vole ${emouty.d3k}`, components: [radek] });
if (!cmd) return void mes.channel.send("bohuzel negdo sy ze mi dela prel");

View File

@ -5,7 +5,7 @@ import { log } from "../utils/utils";
let client: CClient;
async function ziskatNazev() {
const stranka = await fetch("https://voyo.nova.cz/api/v1/show/content?showId=1&type=episodes&season=6266&count=1&offset=0&url=%2Fserialy%2F1-ordinace-v-ruzove-zahrade-2")
const stranka = await fetch("https://voyo.nova.cz/api/v1/show/content?showId=1&type=episodes&season=6596&count=1&offset=0&url=%2Fserialy%2F1-ordinace-v-ruzove-zahrade-2")
.then(r => r.text())
.catch(e => log("chyba pri accessovani VOYO stránky", e));