diff --git a/docs/Player.html b/docs/Player.html index 50f5563..41b6a4d 100644 --- a/docs/Player.html +++ b/docs/Player.html @@ -2042,7 +2042,7 @@ -

setRepeatMode(enabled) → {Promise.<Void>}

+

setRepeatMode(guildID, enabled) → {Promise.<Void>}

@@ -2122,6 +2122,32 @@ + + + guildID + + + + + +string + + + + + + + + + + + + + + + + + enabled diff --git a/docs/index.html b/docs/index.html index 86cca79..b20b44f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -114,9 +114,9 @@ client.player.nowPlaying(guildID); // Current song will be repeated indefinitely -client.player.setRepeatMode(true); +client.player.setRepeatMode(guildID, true); // Current song will no longer be repeated indefinitely -client.player.setRepeatMode(false); +client.player.setRepeatMode(guildID, false);

Event messages

client.player.getQueue(guildID)
@@ -338,7 +338,7 @@ client.player.setRepeatMode(false);
 

Repeat

To repeat the current song, use the client.player.setRepeatMode() function.

Usage:

-
client.player.setRepeatMode(boolean);
+
client.player.setRepeatMode(guildID, boolean);
 

Example:

client.on('message', async (message) => {
@@ -348,7 +348,7 @@ client.player.setRepeatMode(false);
 
     if(command === 'enable-repeat'){
         // Enable repeat mode
-        client.player.setRepeatMode(true);
+        client.player.setRepeatMode(message.guild.id, true);
         // Get the current song
         let song = await client.player.nowPlaying(message.guild.id);
         message.channel.send(`${song.name} will be repeated indefinitely!`);
@@ -356,7 +356,7 @@ client.player.setRepeatMode(false);
 
     if(command === 'disable-repeat'){
         // Disable repeat mode
-        client.player.setRepeatMode(false);
+        client.player.setRepeatMode(message.guild.id, false);
         // Get the current song
         let song = await client.player.nowPlaying(message.guild.id);
         message.channel.send(`${song.name}  will no longer be repeated indefinitely!`);