reamde: update repeat examples
This commit is contained in:
parent
374da86cd7
commit
9ae1c2c483
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -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!`);
|
||||||
|
|
Loading…
Reference in a new issue