se poser @codefactor
This commit is contained in:
parent
55e2acd5f5
commit
8dbeed897e
@ -1,7 +1,7 @@
|
|||||||
// Cokoliv co má něco společnýho s vojsem
|
// Cokoliv co má něco společnýho s vojsem
|
||||||
|
|
||||||
import { getVoiceConnection } from "@discordjs/voice";
|
import { getVoiceConnection } from "@discordjs/voice";
|
||||||
import { ChannelType, GuildMember, Message, VoiceBasedChannel, VoiceChannel, VoiceState } from "discord.js";
|
import { ChannelType, GuildMember, Message, VoiceChannel, VoiceState } from "discord.js";
|
||||||
import { emouty } from "../utils/emotes";
|
import { emouty } from "../utils/emotes";
|
||||||
import { CClient, Modul } from "../utils/types";
|
import { CClient, Modul } from "../utils/types";
|
||||||
import { log, rand } from "../utils/utils";
|
import { log, rand } from "../utils/utils";
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { StreamType, VoiceConnection } from "@discordjs/voice";
|
import { VoiceConnection } from "@discordjs/voice";
|
||||||
import { Awaitable, BaseMessageOptions, Client, ClientEvents, ClientPresenceStatusData, CommandInteraction, Message, MessageCreateOptions, MessagePayload, User } from "discord.js";
|
import { Awaitable, BaseMessageOptions, Client, ClientEvents, ClientPresenceStatusData, CommandInteraction, Message, MessageCreateOptions, MessagePayload, User } from "discord.js";
|
||||||
import { EventEmitter } from "events";
|
import { EventEmitter } from "events";
|
||||||
import { Readable } from "node:stream";
|
|
||||||
|
|
||||||
export type RunFunkce = (message: Message, argumenty: string) => Awaitable<string | MessagePayload | MessageCreateOptions | void>;
|
export type RunFunkce = (message: Message, argumenty: string) => Awaitable<string | MessagePayload | MessageCreateOptions | void>;
|
||||||
export type InteractionRunFunkce = (interaction: CommandInteraction) => Awaitable<string | BaseMessageOptions | void>;
|
export type InteractionRunFunkce = (interaction: CommandInteraction) => Awaitable<string | BaseMessageOptions | void>;
|
||||||
|
|||||||
@ -66,7 +66,7 @@ export const novejJoin = (guild: Guild, channelId: string) => new Promise<boolea
|
|||||||
// Z nějakýho neznámího důvodu se nepodařilo přepojit, prostě vytvoříme nový připojení
|
// Z nějakýho neznámího důvodu se nepodařilo přepojit, prostě vytvoříme nový připojení
|
||||||
// log(new Error("jo tak tuto nechapu"));
|
// log(new Error("jo tak tuto nechapu"));
|
||||||
novejLeave(guildId);
|
novejLeave(guildId);
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const conn = joinVoiceChannel({
|
const conn = joinVoiceChannel({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user