discord-player
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "discord-player", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Complete framework to facilitate music commands using discord.js v12", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -84,5 +84,5 @@ # Discord Player | ||
// 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); | ||
``` | ||
@@ -398,3 +398,3 @@ | ||
```js | ||
client.player.setRepeatMode(boolean); | ||
client.player.setRepeatMode(guildID, boolean); | ||
``` | ||
@@ -412,3 +412,3 @@ | ||
// Enable repeat mode | ||
client.player.setRepeatMode(true); | ||
client.player.setRepeatMode(message.guild.id, true); | ||
// Get the current song | ||
@@ -421,3 +421,3 @@ let song = await client.player.nowPlaying(message.guild.id); | ||
// Disable repeat mode | ||
client.player.setRepeatMode(false); | ||
client.player.setRepeatMode(message.guild.id, false); | ||
// Get the current song | ||
@@ -424,0 +424,0 @@ let song = await client.player.nowPlaying(message.guild.id); |
@@ -293,6 +293,7 @@ const ytdl = require('ytdl-core'); | ||
* Enable or disable the repeat mode | ||
* @param {string} guildID | ||
* @param {Boolean} enabled Whether the repeat mode should be enabled | ||
* @returns {Promise<Void>} | ||
*/ | ||
setRepeatMode(enabled) { | ||
setRepeatMode(guildID, enabled) { | ||
return new Promise(async(resolve, reject) => { | ||
@@ -299,0 +300,0 @@ // Gets guild queue |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29764
515