pro jistotku

This commit is contained in:
Histmy 2024-05-15 19:56:19 +02:00
parent a2b5a9818b
commit 46e9b5bb44
Signed by: Histmy
GPG Key ID: AC2E43C463D8F329
2 changed files with 7 additions and 2 deletions

View File

@ -24,6 +24,11 @@ client.on("error", err => {
adminLog(client, "nejaka chyba na klijentovi", err); adminLog(client, "nejaka chyba na klijentovi", err);
}); });
client.on("shardError", err => {
log(err);
adminLog(client, "šárd ejrr??", err);
});
client.komandy = {}; client.komandy = {};
client.aliasy = {}; client.aliasy = {};
setClient(client); setClient(client);

View File

@ -1,4 +1,4 @@
import { APIEmbed, ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, CacheType, ChannelType, Client, Collection, ComponentType, MessageCreateOptions, TextBasedChannel, User } from "discord.js"; import { APIEmbed, ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, CacheType, ChannelType, Client, ComponentType, MessageCreateOptions, ReadonlyCollection, TextBasedChannel, User } from "discord.js";
import { existsSync } from "fs"; import { existsSync } from "fs";
import { MysqlError, createPool } from "mysql"; import { MysqlError, createPool } from "mysql";
@ -111,7 +111,7 @@ type Nastaveni = {
onCollect: (i: ButtonInteraction, id: number, radek: ActionRowBuilder<ButtonBuilder>) => void; onCollect: (i: ButtonInteraction, id: number, radek: ActionRowBuilder<ButtonBuilder>) => void;
timeout?: number; timeout?: number;
} & ({ } & ({
onEnd: (c: Collection<string, ButtonInteraction<CacheType>>) => void; onEnd: (c: ReadonlyCollection<string, ButtonInteraction<CacheType>>) => void;
} | { } | {
konecnaZprava: string; konecnaZprava: string;
stejne?: boolean; stejne?: boolean;