Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Morais Rodrigues <76886832+1Lucas1apk@users.noreply.github.com>
  • Loading branch information
1Lucas1apk authored Mar 17, 2023
1 parent e355389 commit 0857930
Show file tree
Hide file tree
Showing 10 changed files with 217 additions and 0 deletions.
8 changes: 8 additions & 0 deletions @Typings/MoonlinkDatabase.d.ts
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;
}
19 changes: 19 additions & 0 deletions @Typings/MoonlinkFilters.d.ts
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;
}
24 changes: 24 additions & 0 deletions @Typings/MoonlinkManager.d.ts
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");
24 changes: 24 additions & 0 deletions @Typings/MoonlinkNodes.d.ts
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");
29 changes: 29 additions & 0 deletions @Typings/MoonlinkPlayer.d.ts
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";
9 changes: 9 additions & 0 deletions @Typings/MoonlinkQueue.d.ts
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;
}
14 changes: 14 additions & 0 deletions @Typings/MoonlinkTrack.d.ts
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;
}
15 changes: 15 additions & 0 deletions @Typings/MoonlinkUtils.d.ts
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 };
73 changes: 73 additions & 0 deletions @Typings/Spotify.d.ts
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";
2 changes: 2 additions & 0 deletions @Typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { MoonlinkManager } from "./@Moonlink/MoonlinkManager.js";
export { MoonlinkManager, version };

0 comments on commit 0857930

Please sign in to comment.