Version increase

This commit is contained in:
Histmy 2025-10-15 14:46:43 +02:00
parent bfccc0eac9
commit d0579d3132
12 changed files with 78 additions and 105 deletions

151
package-lock.json generated
View File

@ -1,17 +1,17 @@
{ {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.62.6", "version": "3001.62.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.62.6", "version": "3001.62.7",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@discordjs/voice": "^0.18.0", "@discordjs/voice": "^0.19.0",
"@distube/ytdl-core": "^4.16.10", "@distube/ytdl-core": "^4.16.12",
"discord.js": "^14.19.3", "discord.js": "^14.23.2",
"js-levenshtein": "^1.1.6", "js-levenshtein": "^1.1.6",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"opusscript": "^0.1.1", "opusscript": "^0.1.1",
@ -26,15 +26,15 @@
} }
}, },
"node_modules/@discordjs/builders": { "node_modules/@discordjs/builders": {
"version": "1.11.2", "version": "1.12.2",
"resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.11.2.tgz", "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.12.2.tgz",
"integrity": "sha512-F1WTABdd8/R9D1icJzajC4IuLyyS8f3rTOz66JsSI3pKvpCAtsMBweu8cyNYsIyvcrKAVn9EPK+Psoymq+XC0A==", "integrity": "sha512-AugKmrgRJOHXEyMkABH/hXpAmIBKbYokCEl9VAM4Kh6FvkdobQ+Zhv7AR6K+y5hS7+VQ7gKXPYCe1JQmV07H1g==",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@discordjs/formatters": "^0.6.1", "@discordjs/formatters": "^0.6.1",
"@discordjs/util": "^1.1.1", "@discordjs/util": "^1.1.1",
"@sapphire/shapeshift": "^4.0.0", "@sapphire/shapeshift": "^4.0.0",
"discord-api-types": "^0.38.1", "discord-api-types": "^0.38.26",
"fast-deep-equal": "^3.1.3", "fast-deep-equal": "^3.1.3",
"ts-mixer": "^6.0.4", "ts-mixer": "^6.0.4",
"tslib": "^2.6.3" "tslib": "^2.6.3"
@ -46,12 +46,6 @@
"url": "https://github.com/discordjs/discord.js?sponsor" "url": "https://github.com/discordjs/discord.js?sponsor"
} }
}, },
"node_modules/@discordjs/builders/node_modules/discord-api-types": {
"version": "0.38.5",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.5.tgz",
"integrity": "sha512-2sRkDRid39myMMeRzVTWLc2PyafSxu6k3LHpkB1Lx6IVzqycRnIhOedCbXg3IYpbJhKvA7ErNAh0DA/nXG/1Uw==",
"license": "MIT"
},
"node_modules/@discordjs/collection": { "node_modules/@discordjs/collection": {
"version": "1.5.3", "version": "1.5.3",
"resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.3.tgz", "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.3.tgz",
@ -76,16 +70,10 @@
"url": "https://github.com/discordjs/discord.js?sponsor" "url": "https://github.com/discordjs/discord.js?sponsor"
} }
}, },
"node_modules/@discordjs/formatters/node_modules/discord-api-types": {
"version": "0.38.5",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.5.tgz",
"integrity": "sha512-2sRkDRid39myMMeRzVTWLc2PyafSxu6k3LHpkB1Lx6IVzqycRnIhOedCbXg3IYpbJhKvA7ErNAh0DA/nXG/1Uw==",
"license": "MIT"
},
"node_modules/@discordjs/rest": { "node_modules/@discordjs/rest": {
"version": "2.5.0", "version": "2.6.0",
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.5.0.tgz", "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.6.0.tgz",
"integrity": "sha512-PWhchxTzpn9EV3vvPRpwS0EE2rNYB9pvzDU/eLLW3mByJl0ZHZjHI2/wA8EbH2gRMQV7nu+0FoDF84oiPl8VAQ==", "integrity": "sha512-RDYrhmpB7mTvmCKcpj+pc5k7POKszS4E2O9TYc+U+Y4iaCP+r910QdO43qmpOja8LRr1RJ0b3U+CqVsnPqzf4w==",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@discordjs/collection": "^2.1.1", "@discordjs/collection": "^2.1.1",
@ -93,10 +81,10 @@
"@sapphire/async-queue": "^1.5.3", "@sapphire/async-queue": "^1.5.3",
"@sapphire/snowflake": "^3.5.3", "@sapphire/snowflake": "^3.5.3",
"@vladfrangu/async_event_emitter": "^2.4.6", "@vladfrangu/async_event_emitter": "^2.4.6",
"discord-api-types": "^0.38.1", "discord-api-types": "^0.38.16",
"magic-bytes.js": "^1.10.0", "magic-bytes.js": "^1.10.0",
"tslib": "^2.6.3", "tslib": "^2.6.3",
"undici": "6.21.1" "undici": "6.21.3"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"
@ -117,16 +105,10 @@
"url": "https://github.com/discordjs/discord.js?sponsor" "url": "https://github.com/discordjs/discord.js?sponsor"
} }
}, },
"node_modules/@discordjs/rest/node_modules/discord-api-types": {
"version": "0.38.5",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.5.tgz",
"integrity": "sha512-2sRkDRid39myMMeRzVTWLc2PyafSxu6k3LHpkB1Lx6IVzqycRnIhOedCbXg3IYpbJhKvA7ErNAh0DA/nXG/1Uw==",
"license": "MIT"
},
"node_modules/@discordjs/rest/node_modules/undici": { "node_modules/@discordjs/rest/node_modules/undici": {
"version": "6.21.1", "version": "6.21.3",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz", "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz",
"integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==", "integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=18.17" "node": ">=18.17"
@ -145,19 +127,19 @@
} }
}, },
"node_modules/@discordjs/voice": { "node_modules/@discordjs/voice": {
"version": "0.18.0", "version": "0.19.0",
"resolved": "https://registry.npmjs.org/@discordjs/voice/-/voice-0.18.0.tgz", "resolved": "https://registry.npmjs.org/@discordjs/voice/-/voice-0.19.0.tgz",
"integrity": "sha512-BvX6+VJE5/vhD9azV9vrZEt9hL1G+GlOdsQaVl5iv9n87fkXjf3cSwllhR3GdaUC8m6dqT8umXIWtn3yCu4afg==", "integrity": "sha512-UyX6rGEXzVyPzb1yvjHtPfTlnLvB5jX/stAMdiytHhfoydX+98hfympdOwsnTktzr+IRvphxTbdErgYDJkEsvw==",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@types/ws": "^8.5.12", "@types/ws": "^8.18.1",
"discord-api-types": "^0.37.103", "discord-api-types": "^0.38.16",
"prism-media": "^1.3.5", "prism-media": "^1.3.5",
"tslib": "^2.6.3", "tslib": "^2.8.1",
"ws": "^8.18.0" "ws": "^8.18.3"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=22.12.0"
}, },
"funding": { "funding": {
"url": "https://github.com/discordjs/discord.js?sponsor" "url": "https://github.com/discordjs/discord.js?sponsor"
@ -198,13 +180,13 @@
} }
}, },
"node_modules/@discordjs/ws": { "node_modules/@discordjs/ws": {
"version": "1.2.2", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.2.2.tgz", "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.2.3.tgz",
"integrity": "sha512-dyfq7yn0wO0IYeYOs3z79I6/HumhmKISzFL0Z+007zQJMtAFGtt3AEoq1nuLXtcunUE5YYYQqgKvybXukAK8/w==", "integrity": "sha512-wPlQDxEmlDg5IxhJPuxXr3Vy9AjYq5xCvFWGJyD7w7Np8ZGu+Mc+97LCoEc/+AYCo2IDpKioiH0/c/mj5ZR9Uw==",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@discordjs/collection": "^2.1.0", "@discordjs/collection": "^2.1.0",
"@discordjs/rest": "^2.5.0", "@discordjs/rest": "^2.5.1",
"@discordjs/util": "^1.1.0", "@discordjs/util": "^1.1.0",
"@sapphire/async-queue": "^1.5.2", "@sapphire/async-queue": "^1.5.2",
"@types/ws": "^8.5.10", "@types/ws": "^8.5.10",
@ -232,16 +214,10 @@
"url": "https://github.com/discordjs/discord.js?sponsor" "url": "https://github.com/discordjs/discord.js?sponsor"
} }
}, },
"node_modules/@discordjs/ws/node_modules/discord-api-types": {
"version": "0.38.5",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.5.tgz",
"integrity": "sha512-2sRkDRid39myMMeRzVTWLc2PyafSxu6k3LHpkB1Lx6IVzqycRnIhOedCbXg3IYpbJhKvA7ErNAh0DA/nXG/1Uw==",
"license": "MIT"
},
"node_modules/@distube/ytdl-core": { "node_modules/@distube/ytdl-core": {
"version": "4.16.10", "version": "4.16.12",
"resolved": "https://registry.npmjs.org/@distube/ytdl-core/-/ytdl-core-4.16.10.tgz", "resolved": "https://registry.npmjs.org/@distube/ytdl-core/-/ytdl-core-4.16.12.tgz",
"integrity": "sha512-KFKZtNlynOO0PYxelUF5h2bKyAU1d8fe6aZmo+gxWt7H2MQbd0bUeyV4y9iWhI57nukjkSXXQGB625CfhrVdGQ==", "integrity": "sha512-/NR8Jur1Q4E2oD+DJta7uwWu7SkqdEkhwERt7f4iune70zg7ZlLLTOHs1+jgg3uD2jQjpdk7RGC16FqstG4RsA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"http-cookie-agent": "^7.0.1", "http-cookie-agent": "^7.0.1",
@ -319,18 +295,18 @@
} }
}, },
"node_modules/@types/ws": { "node_modules/@types/ws": {
"version": "8.5.12", "version": "8.18.1",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
"integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==", "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/node": "*" "@types/node": "*"
} }
}, },
"node_modules/@vladfrangu/async_event_emitter": { "node_modules/@vladfrangu/async_event_emitter": {
"version": "2.4.6", "version": "2.4.7",
"resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.4.6.tgz", "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.4.7.tgz",
"integrity": "sha512-RaI5qZo6D2CVS6sTHFKg1v5Ohq/+Bo2LZ5gzUEwZ/WkHhwtGTCB/sVLw8ijOkAUxasZ+WshN/Rzj4ywsABJ5ZA==", "integrity": "sha512-Xfe6rpCTxSxfbswi/W/Pz7zp1WWSNn4A0eW4mLkQUewCrXXtMj31lCg+iQyTkh/CkusZSq9eDflu7tjEDXUY6g==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=v14.0.0", "node": ">=v14.0.0",
@ -379,30 +355,33 @@
} }
}, },
"node_modules/discord-api-types": { "node_modules/discord-api-types": {
"version": "0.37.119", "version": "0.38.30",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.119.tgz", "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.30.tgz",
"integrity": "sha512-WasbGFXEB+VQWXlo6IpW3oUv73Yuau1Ig4AZF/m13tXcTKnMpc/mHjpztIlz4+BM9FG9BHQkEXiPto3bKduQUg==", "integrity": "sha512-KhAqlBrg+rVK+Ob7INMF5o63yW4/GUzRatG/AjyVsIO8lgcLyR8qCl2HokIVzWwmzkJYG0CEPXsKMOqau3E8NA==",
"license": "MIT" "license": "MIT",
"workspaces": [
"scripts/actions/documentation"
]
}, },
"node_modules/discord.js": { "node_modules/discord.js": {
"version": "14.19.3", "version": "14.23.2",
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.19.3.tgz", "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.23.2.tgz",
"integrity": "sha512-lncTRk0k+8Q5D3nThnODBR8fR8x2fM798o8Vsr40Krx0DjPwpZCuxxTcFMrXMQVOqM1QB9wqWgaXPg3TbmlHqA==", "integrity": "sha512-tU2NFr823X3TXEc8KyR/4m296KLxPai4nirN3q9kHCpY4TKj96n9lHZnyLzRNMui8EbL07jg9hgH2PWWfKMGIg==",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@discordjs/builders": "^1.11.2", "@discordjs/builders": "^1.12.1",
"@discordjs/collection": "1.5.3", "@discordjs/collection": "1.5.3",
"@discordjs/formatters": "^0.6.1", "@discordjs/formatters": "^0.6.1",
"@discordjs/rest": "^2.5.0", "@discordjs/rest": "^2.6.0",
"@discordjs/util": "^1.1.1", "@discordjs/util": "^1.1.1",
"@discordjs/ws": "^1.2.2", "@discordjs/ws": "^1.2.3",
"@sapphire/snowflake": "3.5.3", "@sapphire/snowflake": "3.5.3",
"discord-api-types": "^0.38.1", "discord-api-types": "^0.38.29",
"fast-deep-equal": "3.1.3", "fast-deep-equal": "3.1.3",
"lodash.snakecase": "4.1.1", "lodash.snakecase": "4.1.1",
"magic-bytes.js": "^1.10.0", "magic-bytes.js": "^1.10.0",
"tslib": "^2.6.3", "tslib": "^2.6.3",
"undici": "6.21.1" "undici": "6.21.3"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"
@ -411,16 +390,10 @@
"url": "https://github.com/discordjs/discord.js?sponsor" "url": "https://github.com/discordjs/discord.js?sponsor"
} }
}, },
"node_modules/discord.js/node_modules/discord-api-types": {
"version": "0.38.5",
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.5.tgz",
"integrity": "sha512-2sRkDRid39myMMeRzVTWLc2PyafSxu6k3LHpkB1Lx6IVzqycRnIhOedCbXg3IYpbJhKvA7ErNAh0DA/nXG/1Uw==",
"license": "MIT"
},
"node_modules/discord.js/node_modules/undici": { "node_modules/discord.js/node_modules/undici": {
"version": "6.21.1", "version": "6.21.3",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.21.1.tgz", "resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz",
"integrity": "sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==", "integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=18.17" "node": ">=18.17"
@ -668,9 +641,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/tslib": { "node_modules/tslib": {
"version": "2.7.0", "version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"license": "0BSD" "license": "0BSD"
}, },
"node_modules/tweetnacl": { "node_modules/tweetnacl": {
@ -715,9 +688,9 @@
} }
}, },
"node_modules/ws": { "node_modules/ws": {
"version": "8.18.0", "version": "8.18.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
"integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"

View File

@ -1,6 +1,6 @@
{ {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.62.6", "version": "3001.62.7",
"description": "Toto je velmi kvalitní bot.", "description": "Toto je velmi kvalitní bot.",
"repository": { "repository": {
"url": "https://github.com/Histmy/Denim-Bot/" "url": "https://github.com/Histmy/Denim-Bot/"
@ -13,9 +13,9 @@
"author": "Histmy + det-fys", "author": "Histmy + det-fys",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@discordjs/voice": "^0.18.0", "@discordjs/voice": "^0.19.0",
"@distube/ytdl-core": "^4.16.10", "@distube/ytdl-core": "^4.16.12",
"discord.js": "^14.19.3", "discord.js": "^14.23.2",
"js-levenshtein": "^1.1.6", "js-levenshtein": "^1.1.6",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"opusscript": "^0.1.1", "opusscript": "^0.1.1",

View File

@ -411,7 +411,7 @@ client.on("presenceUpdate", async (bef, aft) => {
}); });
client.on("interactionCreate", async int => { client.on("interactionCreate", async int => {
if (process.env.ignoreMess || !int.isCommand()) return; if (process.env.ignoreMess || !int.isChatInputCommand()) return;
const cmdName = int.commandName.slice(prefix.length); const cmdName = int.commandName.slice(prefix.length);

View File

@ -1,10 +1,10 @@
// Modul na komand "anketa" // Modul na komand "anketa"
import { ActionRowBuilder, APIEmbed, APIEmbedField, ButtonBuilder, ButtonStyle, CommandInteraction, ComponentType, Message, MessageComponentInteraction } from "discord.js"; import { ActionRowBuilder, APIEmbed, APIEmbedField, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction, ComponentType, Message, MessageComponentInteraction } from "discord.js";
import { Modul, SRecord } from "../utils/types"; import { Modul, SRecord } from "../utils/types";
import { formatter } from "../utils/utils"; import { formatter } from "../utils/utils";
function lookup<T>(opt: CommandInteraction["options"], item: string) { function lookup<T>(opt: ChatInputCommandInteraction["options"], item: string) {
return opt.get(item)?.value as T | undefined; return opt.get(item)?.value as T | undefined;
} }

View File

@ -310,7 +310,7 @@ const exp: Modul = {
} }
}, },
on_ready: () => { on_clientReady: () => {
client = module.exports.client; client = module.exports.client;
zakladniKomandy = client.komandy; zakladniKomandy = client.komandy;
zakladniAliasy = client.aliasy; zakladniAliasy = client.aliasy;

View File

@ -69,7 +69,7 @@ async function urobit() {
} }
const exp: Modul = { const exp: Modul = {
on_ready: () => { on_clientReady: () => {
client = module.exports.client; client = module.exports.client;
urobit(); urobit();

View File

@ -111,7 +111,7 @@ const komandy: RESTPostAPIChatInputApplicationCommandsJSONBody[] = [
]; ];
const exp: Modul = { const exp: Modul = {
on_ready: async () => { on_clientReady: async () => {
const client = module.exports.client as CClient; const client = module.exports.client as CClient;
client.slashCommandy = {}; client.slashCommandy = {};

View File

@ -85,7 +85,7 @@ const exp: Modul = {
}, },
// Odeslání statusů při startu bota // Odeslání statusů při startu bota
on_ready: () => { on_clientReady: () => {
if (process.env.ignorePresence) return; if (process.env.ignorePresence) return;
const client: Client = module.exports.client; const client: Client = module.exports.client;

View File

@ -235,7 +235,7 @@ const exp: Modul = {
} }
}, },
on_ready: () => { on_clientReady: () => {
client = module.exports.client; client = module.exports.client;
if (token) { if (token) {

View File

@ -128,7 +128,7 @@ const exp: Modul = {
} }
}, },
on_ready: () => { on_clientReady: () => {
const client = module.exports.client as CClient; const client = module.exports.client as CClient;
if (process.env.noGeneralSync) return; if (process.env.noGeneralSync) return;

View File

@ -150,7 +150,7 @@ const exp: Modul = {
} }
}, },
on_ready: () => { on_clientReady: () => {
// Nastavení clienta // Nastavení clienta
client = module.exports.client; client = module.exports.client;

View File

@ -1,11 +1,11 @@
import { VoiceConnection } from "@discordjs/voice"; import { VoiceConnection } from "@discordjs/voice";
import { Awaitable, BaseMessageOptions, Client, ClientEvents, ClientPresenceStatusData, CommandInteraction, Message, MessageCreateOptions, OmitPartialGroupDMChannel, Presence, User } from "discord.js"; import { Awaitable, BaseMessageOptions, ChatInputCommandInteraction, Client, ClientEvents, ClientPresenceStatusData, Message, MessageCreateOptions, OmitPartialGroupDMChannel, Presence, User } from "discord.js";
import { EventEmitter } from "events"; import { EventEmitter } from "events";
export type SMessage = OmitPartialGroupDMChannel<Message>; export type SMessage = OmitPartialGroupDMChannel<Message>;
export type RunFunkce = (message: SMessage, argumenty: string) => Awaitable<string | MessageCreateOptions | void>; export type RunFunkce = (message: SMessage, argumenty: string) => Awaitable<string | MessageCreateOptions | void>;
export type InteractionRunFunkce = (interaction: CommandInteraction) => Awaitable<string | BaseMessageOptions | void>; export type InteractionRunFunkce = (interaction: ChatInputCommandInteraction) => Awaitable<string | BaseMessageOptions | void>;
export type BaseKomandProps = { export type BaseKomandProps = {
als?: string[]; als?: string[];