-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lucas Morais Rodrigues <76886832+1Lucas1apk@users.noreply.github.com>
- Loading branch information
1 parent
e355389
commit 0857930
Showing
10 changed files
with
217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export = MoonlinkDB; | ||
declare class MoonlinkDB { | ||
data: {}; | ||
set(key: any, value: any): any; | ||
get(key: any): any; | ||
push(key: any, value: any): any; | ||
delete(key: any): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export class MoonFilters { | ||
constructor(options: any); | ||
guildId: any; | ||
status: any; | ||
reset(): boolean; | ||
nightcore(): void; | ||
vaporwave(): boolean; | ||
bassboost(): boolean; | ||
pop(): boolean; | ||
soft(): boolean; | ||
treblebass(): boolean; | ||
eightD(): boolean; | ||
karaoke(): boolean; | ||
vibrato(): boolean; | ||
tremolo(): boolean; | ||
custom(e: any): boolean; | ||
sendWs(code: any): void; | ||
#private; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export class MoonlinkManager extends EventEmitter { | ||
static "__#5@#attemptConnection"(Manager: any, guildId: any): boolean; | ||
constructor(lavalinks: any, options: any, sPayload: any); | ||
version: any; | ||
spotify: Spotify; | ||
init(clientId: any): void; | ||
nodes: Nodes; | ||
sendWs: (json: any) => void; | ||
clientId: any; | ||
updateVoiceState(packet: any): boolean; | ||
request(node: any, endpoint: any, params: any): Promise<any>; | ||
search(...options: any[]): Promise<any>; | ||
get players(): { | ||
get: (guild: any) => import("../@Moonlink/MoonlinkPlayer.js").MoonPlayer; | ||
create: (t: any) => import("../@Moonlink/MoonlinkPlayer.js").MoonPlayer; | ||
all: () => any; | ||
has: (guild: any) => any; | ||
edit: (info: any) => import("../@Moonlink/MoonlinkPlayer.js").MoonPlayer; | ||
}; | ||
#private; | ||
} | ||
import { EventEmitter } from "events"; | ||
import Spotify = require("../@sources/Spotify.js"); | ||
import Nodes = require("./MoonlinkNodes.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export = MoonlinkNodes; | ||
declare class MoonlinkNodes { | ||
constructor(MoonlinkManager: any, nodes: any, options: any, sPayload: any, clientId: any); | ||
manager: any; | ||
nodes: any; | ||
options: any; | ||
sPayload: any; | ||
clientId: any; | ||
version: string; | ||
retryTime: number; | ||
reconnectAtattempts: number; | ||
retryAmount: number; | ||
init(): void; | ||
idealNode(): any; | ||
sendWs(json: any): void; | ||
create(options: any, clientId: any): void; | ||
ws: WebSocket; | ||
ManagerNodes(node: any, ws: any): void; | ||
reconnect(node: any): void; | ||
get(identify: any): any; | ||
get size(): number; | ||
#private; | ||
} | ||
import WebSocket = require("ws"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export class MoonPlayer { | ||
constructor(infos: any, manager: any); | ||
guildId: any; | ||
textChannel: any; | ||
voiceChannel: any; | ||
playing: any; | ||
connected: any; | ||
paused: any; | ||
loop(number: any): void; | ||
volume: any; | ||
current: any; | ||
queue: MoonQueue; | ||
filters: MoonFilters; | ||
connect(options: any): void; | ||
disconnect(): void; | ||
play(): void; | ||
pause(): void; | ||
resume(): void; | ||
setVolume(percent: any): void; | ||
stop(): boolean; | ||
destroy(): boolean; | ||
skip(): boolean; | ||
seek(number: any): boolean; | ||
removeSong(position: any): boolean; | ||
skipTo(position: any): void; | ||
#private; | ||
} | ||
import { MoonQueue } from "../@Rest/MoonlinkQueue.js"; | ||
import { MoonFilters } from "../@Rest/MoonlinkFilters.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export class MoonQueue { | ||
constructor(data: any); | ||
guildId: any; | ||
add(track: any): void; | ||
first(): any; | ||
get all(): any; | ||
clear(): boolean; | ||
get size(): any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export class MoonlinkTrack { | ||
constructor(data: any, request: any); | ||
position: any; | ||
title: any; | ||
author: any; | ||
url: any; | ||
identifier: any; | ||
duration: any; | ||
isSeekable: any; | ||
track: any; | ||
source: any; | ||
requester: any; | ||
get thumbnail(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export namespace track { | ||
function skip(): any; | ||
function skipEdit(i: any): void; | ||
function current(): any; | ||
function editCurrent(track: any): void; | ||
} | ||
export let db: database; | ||
export function sendDs(): any; | ||
export function esdw(x: any): void; | ||
export function request(node: any, endpoint: any, params: any): Promise<any>; | ||
import makeRequest = require("./MakeRequest.js"); | ||
import database = require("./MoonlinkDatabase.js"); | ||
export declare const map: Map<any, any>; | ||
export declare const filters: any[]; | ||
export { makeRequest }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
export = Spotify; | ||
declare class Spotify { | ||
constructor(options: any, others: any); | ||
manager: any; | ||
options: any; | ||
clientId: any; | ||
clientSecret: any; | ||
check(uri: any): boolean; | ||
requestToken(): Promise<void>; | ||
renew(): Promise<void>; | ||
request(endpoint: any): Promise<any>; | ||
resolve(url: any): Promise<{ | ||
loadType: string; | ||
tracks: any[]; | ||
playlistInfo: { | ||
name: any; | ||
} | { | ||
name?: undefined; | ||
}; | ||
} | { | ||
loadType: string; | ||
tracks: MoonlinkTrack[]; | ||
playlistInfo: {}; | ||
}>; | ||
fetchPlaylist(id: any): Promise<{ | ||
loadType: string; | ||
tracks: any[]; | ||
playlistInfo: { | ||
name: any; | ||
} | { | ||
name?: undefined; | ||
}; | ||
}>; | ||
fetchAlbum(id: any): Promise<{ | ||
loadType: string; | ||
tracks: any[]; | ||
playlistInfo: { | ||
name: any; | ||
} | { | ||
name?: undefined; | ||
}; | ||
}>; | ||
fetchArtist(id: any): Promise<{ | ||
loadType: string; | ||
tracks: any[]; | ||
playlistInfo: { | ||
name: any; | ||
} | { | ||
name?: undefined; | ||
}; | ||
}>; | ||
fetchTrack(id: any): Promise<{ | ||
loadType: string; | ||
tracks: MoonlinkTrack[]; | ||
playlistInfo: {}; | ||
}>; | ||
fetch(query: any): Promise<{ | ||
loadType: string; | ||
tracks: any[]; | ||
playlistInfo: { | ||
name: any; | ||
} | { | ||
name?: undefined; | ||
}; | ||
} | { | ||
loadType: string; | ||
tracks: MoonlinkTrack[]; | ||
playlistInfo: {}; | ||
}>; | ||
buildUnresolved(track: any): Promise<MoonlinkTrack>; | ||
#private; | ||
} | ||
import { MoonlinkTrack } from "../@Rest/MoonlinkTrack.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { MoonlinkManager } from "./@Moonlink/MoonlinkManager.js"; | ||
export { MoonlinkManager, version }; |