From 5fda94a3a9caa76830c794ea1862654c32a9a91e Mon Sep 17 00:00:00 2001 From: Zerio <43386412+ZerioDev@users.noreply.github.com> Date: Sat, 1 Feb 2020 20:53:07 +0100 Subject: [PATCH] Update README.md --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 52d7c65..4d887ef 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,40 @@ npm i (name of each missing module) ``` All you have to do is turn on your bot ! + +Utilities (to change the code) + +Functions available with the `discord-player` module that you can use : + +```js +// Play a song in the voice channel and init the guild queue +client.player.play(voiceChannel, songName); + +// Add a song to the queue +client.player.addToQueue(guildID, songName); +// Clear the queue +client.player.clearQueue(guildID); +// Get the queue +client.player.getQueue(guildID); +// Skip the current song +client.player.skip(guildID); + + +// Pause +client.player.pause(guildID); +// Resume +client.player.resume(guildID); +// Stop +client.player.stop(guildID); + +// Check if music is playing in a guild +client.player.isPlaying(guildID); +// Get the currently playing song +client.player.nowPlaying(guildID); + + +// Current song will be repeated indefinitely +client.player.setRepeatMode(true); +// Current song will no longer be repeated indefinitely +client.player.setRepeatMode(false); +```