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

1.0.4 • Public • Published

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.

Package Sidebar

Install

npm i discordbotmusicapi

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

87.8 kB

Total Files

16

Last publish

Collaborators

  • cfedoradev