Highlight of selected command suggestion
This commit is contained in:
parent
3ba1b5402b
commit
41f3b94ed3
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "denim_3001",
|
||||
"version": "3001.58.5",
|
||||
"version": "3001.58.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "denim_3001",
|
||||
"version": "3001.58.5",
|
||||
"version": "3001.58.6",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@discordjs/voice": "^0.17.0",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "denim_3001",
|
||||
"version": "3001.58.5",
|
||||
"version": "3001.58.6",
|
||||
"description": "Toto je velmi kvalitní bot.",
|
||||
"repository": {
|
||||
"url": "https://github.com/Histmy/Denim-Bot/"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ChannelType, Client, CommandInteraction, GatewayIntentBits, InteractionReplyOptions, Message, Partials } from "discord.js";
|
||||
import { ButtonStyle, ChannelType, Client, CommandInteraction, GatewayIntentBits, InteractionReplyOptions, Message, Partials } from "discord.js";
|
||||
import { readdirSync } from "fs";
|
||||
import { CUser, KomandNaExport, Komand, ListenerFunkce, Modul, SRecord, SuperListenerFunkce, CClient, HelpServer, KomandRaw } from "./utils/types";
|
||||
import { adminLog, formatCas, oddiakritikovat, log, rand, prefix, nabidni } from "./utils/utils.js";
|
||||
@ -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 => btn.setDisabled());
|
||||
radek.components.forEach((btn, i) => btn.setDisabled() && (i == lookupId && btn.setStyle(ButtonStyle.Primary)));
|
||||
i.update({ content: `ok vole ${emouty.d3k}`, components: [radek] });
|
||||
|
||||
if (!cmd) return void mes.channel.send("bohuzel negdo sy ze mi dela prel");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user