From 8dbeed897e44614d6117eeff4a87ab0c7d16e862 Mon Sep 17 00:00:00 2001 From: Histmy <59661489+Histmy@users.noreply.github.com> Date: Sun, 20 Aug 2023 18:20:03 +0200 Subject: [PATCH] se poser @codefactor --- src/modules/vojs.ts | 2 +- src/utils/types.ts | 3 +-- src/utils/voice.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/vojs.ts b/src/modules/vojs.ts index a35913f..698b915 100644 --- a/src/modules/vojs.ts +++ b/src/modules/vojs.ts @@ -1,7 +1,7 @@ // Cokoliv co má něco společnýho s vojsem 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 { CClient, Modul } from "../utils/types"; import { log, rand } from "../utils/utils"; diff --git a/src/utils/types.ts b/src/utils/types.ts index c1d125c..a411036 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -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 { EventEmitter } from "events"; -import { Readable } from "node:stream"; export type RunFunkce = (message: Message, argumenty: string) => Awaitable; export type InteractionRunFunkce = (interaction: CommandInteraction) => Awaitable; diff --git a/src/utils/voice.ts b/src/utils/voice.ts index bbf3185..b5a1d2c 100644 --- a/src/utils/voice.ts +++ b/src/utils/voice.ts @@ -66,7 +66,7 @@ export const novejJoin = (guild: Guild, channelId: string) => new Promise