diff --git a/.gitignore b/.gitignore index c5491be..12bf8ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ node_modules/ yarn.lock -yarn-error.log \ No newline at end of file +yarn-error.log + +.vscode \ No newline at end of file diff --git a/README.md b/README.md index 56f9fa9..6c0a498 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,42 @@ -
+ A powerful lavalink client built on the Deno Runtime + +-A powerful lavalink client built on the [Deno](https://deno.land/) Runtime +- **Flexible**: Lavadeno is not restricted to a specific discord library. Meaning you only need a connection to the discord gateway for it to work. +- **Easy-to-Use**: Lavadeno has a neat and user-friendly promise-based api. +- **Lightweight**: Designed to be small and performant, it's a great choice for any sized project. + +
melike2d © 2020
diff --git a/mod.ts b/mod.ts index 1b64dd3..b423e35 100644 --- a/mod.ts +++ b/mod.ts @@ -1,5 +1,5 @@ -export * from "./src/@types/track.d.ts"; -export * from "./src/@types/player.d.ts"; +export type { Track, TrackInfo, LoadTracksException, LoadTracksResponse, LoadType } from "./src/@types/track.d.ts"; +export type { PlayTrack, PlayerEvent, PlayerEventType, PlayerRequest, PlayerState, PlayerUpdate } from "./src/@types/player.d.ts"; export * from "./src/api/Socket.ts"; export * from "./src/api/Player.ts"; export * from "./src/Manager.ts"; diff --git a/src/@types/track.d.ts b/src/@types/track.d.ts index d9a8f48..4abf573 100644 --- a/src/@types/track.d.ts +++ b/src/@types/track.d.ts @@ -1,4 +1,4 @@ -import { Severity } from "./misc"; +import { Severity } from "./player.d.ts"; export type LoadType = "TRACK_LOADED" | "PLAYLIST_LOADED" | "SEARCH_RESULT" | "NO_MATCHES" | "LOAD_FAILED" @@ -33,4 +33,4 @@ export interface TrackInfo { position: number; title: string; uri: string; -} \ No newline at end of file +} diff --git a/src/Manager.ts b/src/Manager.ts index c3a53f0..4e51265 100644 --- a/src/Manager.ts +++ b/src/Manager.ts @@ -1,10 +1,9 @@ import { EventEmitter } from "https://deno.land/std@0.66.0/node/events.ts"; import { WebSocketCloseEvent } from "https://deno.land/std@0.66.0/ws/mod.ts"; -import { soxa } from "https://deno.land/x/soxa/mod.ts" import { Socket, SocketData } from "./api/Socket.ts"; import { Player } from "./api/Player.ts"; -import type { LoadTracksResponse } from "./@types"; +import type { LoadTracksResponse } from "./@types/track.d.ts"; const defaults = { resuming: { key: Math.random().toString(32), timeout: 60000 }, @@ -184,15 +183,17 @@ export class Manager extends EventEmitter { * @param query The search query. */ public async search(query: string): Promise