discordmusicapi
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Usage:

const MusicAPI = require("discordmusicapi")

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

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

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

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

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

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

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

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

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

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

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

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

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

Package Sidebar

Install

npm i discordmusicapi

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

87.7 kB

Total Files

16

Last publish

Collaborators

  • cfedoradev