Constructors
Properties
player
player: AudioPlayer
queue
queue: Track<"SoundCloud" | "LocalFile" | "Url" | "Youtube" | "Spotify">[] Accessors
currentTrack
- get currentTrack(): Track<
"SoundCloud"
| "LocalFile"
| "Url"
| "Youtube"
| "Spotify",
> Returns Track<"SoundCloud" | "LocalFile" | "Url" | "Youtube" | "Spotify">
filters
- get filters(): string[]
Returns string[]
previousTrack
- get previousTrack(): Track<
"SoundCloud"
| "LocalFile"
| "Url"
| "Youtube"
| "Spotify",
> Returns Track<"SoundCloud" | "LocalFile" | "Url" | "Youtube" | "Spotify">
seek
- get seek(): boolean
Returns boolean
volume
- get volume(): number
Returns number
- set volume(volume: number): void
Returns void
Methods
__configConnection
- __configConnection(): void
Returns void
_configPlayer
- _configPlayer(): void
Returns void
_destroy
- _destroy(): void
Returns void
_loopQueue
- _loopQueue(): Promise<void>
Returns Promise<void>
_playNext
- _playNext(): Promise<void>
Returns Promise<void>
add
- add(track: string[], type: PlatformType, member: GuildMember): Promise<void>
Returns Promise<void>
autoPlayNext
- autoPlayNext(): Promise<void>
Returns Promise<void>
currentPosition
- currentPosition(): number
Returns number
getPing
- getPing(type?: "ws" | "udp"): number
Parameters
- type: "ws" | "udp" = "ws"
Returns number
getQueue
- getQueue(page?: number, limit?: number, format?: string): string[]
Parameters
- page: number = 1
- limit: number = 10
- format: string = "{position}) {title} | {requester.user.username}"
Returns string[]
getTrackCurrentDuration
- getTrackCurrentDuration(): number
Returns number
isAutoPlayEnabled
- isAutoPlayEnabled(): boolean
Returns boolean
isLoopEnabled
- isLoopEnabled(): boolean
Returns boolean
isPaused
- isPaused(): boolean
Returns boolean
isShuffled
- isShuffled(): boolean
Returns boolean
pause
- pause(): boolean
Returns boolean
play
- play(emit?: boolean): Promise<void>
Returns Promise<void>
playPrevious
- playPrevious(): Promise<void>
Returns Promise<void>
removeFilters
- removeFilters(): void
Returns void
removeTrack
- removeTrack(position: number): void
Returns void
resume
- resume(): boolean
Returns boolean
seeked
- seeked(seek: boolean): void
Returns void
setFiltering
- setFiltering(type: boolean): void
Returns void
setFilters
- setFilters(filterArr: string[]): void
Returns void
shuffle
- shuffle(): void
Returns void
skip
- skip(): boolean
Returns boolean
skipTo
- skipTo(position: number): void
Returns void
unshuffle
- unshuffle(): void
Returns void
updateFilters
- updateFilters(filterArr: string[]): void
Returns void