Skip to content

Commit

Permalink
Changed Snowflake to import types instead
Browse files Browse the repository at this point in the history
  • Loading branch information
retrouser955 committed Aug 14, 2024
1 parent 52843da commit 5be7ba6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/discord-player/src/Player.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FFmpeg } from '@discord-player/ffmpeg';
import { Snowflake } from 'discord-api-types/globals';
import { type Snowflake } from 'discord-api-types/globals';
import { GatewayVoiceState } from 'discord-api-types/v10';
import { version as dVoiceVersion, generateDependencyReport } from 'discord-voip';
import { createClientAdapter } from './clientadapter/ClientAdapterFactory';
Expand Down
2 changes: 1 addition & 1 deletion packages/discord-player/src/VoiceInterface/VoiceUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Collection } from '@discord-player/utils';
import { Snowflake } from 'discord-api-types/globals';
import { type Snowflake } from 'discord-api-types/globals';
import { AudioPlayer, DiscordGatewayAdapterCreator, getVoiceConnection, joinVoiceChannel, VoiceConnection, VoiceConnectionStatus } from 'discord-voip';
import type { Player } from '../Player';
import { VoiceBasedChannel } from '../clientadapter/IClientAdapter';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Snowflake } from "discord-api-types/globals";
import { type Snowflake } from "discord-api-types/globals";
import { Client, Events, GuildChannel, IntentsBitField, version } from "discord.js";
import { Util } from "../utils/Util";
import { Channel, ClientType, Guild, IClientAdapter, User, VoiceBasedChannel } from './IClientAdapter';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Snowflake } from 'discord-api-types/globals';
import { type Snowflake } from 'discord-api-types/globals';
import { ChannelType } from 'discord-api-types/v10';
import { AudioPlayerState, DiscordGatewayAdapterCreator } from "discord-voip";

Expand Down
2 changes: 1 addition & 1 deletion packages/discord-player/src/fabric/Playlist.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Snowflake } from 'discord-api-types/globals';
import { type Snowflake } from 'discord-api-types/globals';
import { Exceptions } from '../errors';
import { Player, PlayerNodeInitializationResult, PlayerNodeInitializerOptions } from '../Player';
import { PlaylistInitData, PlaylistJSON, TrackJSON, TrackSource } from '../types/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/discord-player/src/fabric/Track.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Collection } from '@discord-player/utils';
import { Snowflake } from 'discord-api-types/globals';
import { type Snowflake } from 'discord-api-types/globals';
import { Player, PlayerNodeInitializationResult, PlayerNodeInitializerOptions } from '../Player';
import { User } from '../clientadapter/IClientAdapter';
import { Exceptions } from '../errors';
Expand Down
2 changes: 1 addition & 1 deletion packages/discord-player/src/queue/GuildNodeManager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BiquadFilters, EqualizerBand, PCMFilters } from '@discord-player/equalizer';
import { Collection, QueueStrategy } from '@discord-player/utils';
import { Snowflake } from 'discord-api-types/globals';
import { type Snowflake } from 'discord-api-types/globals';
import { Exceptions } from '../errors';
import { Player } from '../Player';
import { FiltersName, QueueRepeatMode } from '../types/types';
Expand Down
2 changes: 1 addition & 1 deletion packages/discord-player/src/queue/GuildQueue.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BiquadFilters, EqualizerBand, PCMFilters } from '@discord-player/equalizer';
import { Collection, Queue, QueueStrategy } from '@discord-player/utils';
import { Snowflake } from 'discord-api-types/globals';
import { type Snowflake } from 'discord-api-types/globals';
import { ChannelType } from 'discord-api-types/v10';
import { type AudioPlayer, AudioResource, StreamType, VoiceConnection, VoiceConnectionStatus } from 'discord-voip';
import { Readable } from 'stream';
Expand Down

0 comments on commit 5be7ba6

Please sign in to comment.