reamde: update repeat examples

This commit is contained in:
Androz2091 2020-02-02 11:20:31 +01:00
parent 374da86cd7
commit 9ae1c2c483

View file

@ -81,9 +81,9 @@ client.player.nowPlaying(guildID);
// Current song will be repeated indefinitely // Current song will be repeated indefinitely
client.player.setRepeatMode(true); client.player.setRepeatMode(guildID, true);
// Current song will no longer be repeated indefinitely // Current song will no longer be repeated indefinitely
client.player.setRepeatMode(false); client.player.setRepeatMode(guildID, false);
``` ```
### Event messages ### Event messages
@ -394,7 +394,7 @@ To repeat the current song, use the `client.player.setRepeatMode()` function.
**Usage:** **Usage:**
```js ```js
client.player.setRepeatMode(boolean); client.player.setRepeatMode(guildID, boolean);
``` ```
**Example**: **Example**:
@ -407,7 +407,7 @@ client.on('message', async (message) => {
if(command === 'enable-repeat'){ if(command === 'enable-repeat'){
// Enable repeat mode // Enable repeat mode
client.player.setRepeatMode(true); client.player.setRepeatMode(message.guild.id, true);
// Get the current song // Get the current song
let song = await client.player.nowPlaying(message.guild.id); let song = await client.player.nowPlaying(message.guild.id);
message.channel.send(`${song.name} will be repeated indefinitely!`); message.channel.send(`${song.name} will be repeated indefinitely!`);
@ -415,7 +415,7 @@ client.on('message', async (message) => {
if(command === 'disable-repeat'){ if(command === 'disable-repeat'){
// Disable repeat mode // Disable repeat mode
client.player.setRepeatMode(false); client.player.setRepeatMode(message.guild.id, false);
// Get the current song // Get the current song
let song = await client.player.nowPlaying(message.guild.id); let song = await client.player.nowPlaying(message.guild.id);
message.channel.send(`${song.name} will no longer be repeated indefinitely!`); message.channel.send(`${song.name} will no longer be repeated indefinitely!`);