Skip to content
This repository has been archived by the owner on Nov 3, 2018. It is now read-only.
Guichaguri edited this page Dec 26, 2015 · 1 revision

The DJ is a class that provides the music functionality. It can be extended and modified depending on your necessity, the BotDJ is a good example.

Functions

new DJ(bot, voiceConnection)

The constructor of the class

  • bot The Discordie bot
  • voiceConnection A VoiceConnection instance

Unsafe: Can be changed anytime soon. Use DJManager for creating DJ instances

play(playable)

Plays a song

  • playable Any class instance that extends Playable. Example: YoutubeVideo

skip()

Skips the current playing song

addToQueue(playable)

Add a song to queue

  • playable Any class instance that extends Playable. Example: FileAudio

Attributes

playable

The current playing song. Can be null.

nowPlaying

An alias for playable

bot

The Discordie bot. Unsafe

voiceConnection

The VoiceConnection instance. Unsafe