Button styl a vordinace fix
This commit is contained in:
parent
b492c8d478
commit
d37e8d0637
@ -321,7 +321,7 @@ client.on("messageCreate", async mes => {
|
|||||||
const komand = nabidka[lookupId];
|
const komand = nabidka[lookupId];
|
||||||
const cmdName = client.aliasy[komand] ?? komand;
|
const cmdName = client.aliasy[komand] ?? komand;
|
||||||
const cmd = client.komandy[cmdName];
|
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] });
|
i.update({ content: `ok vole ${emouty.d3k}`, components: [radek] });
|
||||||
|
|
||||||
if (!cmd) return void mes.channel.send("bohuzel negdo sy ze mi dela prel");
|
if (!cmd) return void mes.channel.send("bohuzel negdo sy ze mi dela prel");
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { log } from "../utils/utils";
|
|||||||
let client: CClient;
|
let client: CClient;
|
||||||
|
|
||||||
async function ziskatNazev() {
|
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())
|
.then(r => r.text())
|
||||||
.catch(e => log("chyba pri accessovani VOYO stránky", e));
|
.catch(e => log("chyba pri accessovani VOYO stránky", e));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user