1.0.4 • Published 4 years ago

discordbotmusicapi v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Usage:

const MusicAPI = require("discordmusicapi")

const MusicAPIPlayer = new MusicAPI("Youtube api key in here!")

MusicAPIPlayer.play(message, searchArray) // Searches for and add the searched results to the queue.

MusicAPIPlayer.playTop(message, searchArray) // Searches for and add the searched results to the top of the queue.

MusicAPIPlayer.stop(message) // Stop the music, which includes clearing the queue.

MusicAPIPlayer.nowPlaying(message) // Display the music title for now playing.

MusicAPIPlayer.showQueue(message) // Displays the whole music queue.

MusicAPIPlayer.skip(message) // Skip the song that is now playing.

MusicAPIPlayer.remove(message) // Removes certain position of song in the song queue.

MusicAPIPlayer.pause(message) // Pauses the music queue.

MusicAPIPlayer.repeat(message) // Repeats the current song.

MusicAPIPlayer.loop(message) // Loops the whole queue.

MusicAPIPlayer.shuffle(message) // Shuffles the whole queue.

MusicAPIPlayer.volume(message, volume) // Sets the volume to the certain amount. Using negative values will show the volume that is using now instead.