docs: update readme and docs

This commit is contained in:
Androz2091 2020-01-11 20:13:09 +01:00
parent 527bd56ea1
commit 455da9b830
2 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@
**Note**: this module uses recent discordjs features and requires discord.js version 12.
Discord Player is a powerful [Node.js](https://nodejs.org) module that allows you to easily implement music commands. Everything is customizable, and everything is done to simplify your work without limiting you!
Discord Player is a powerful [Node.js](https://nodejs.org) module that allows you to easily implement music commands. **Everything** is customizable, and everything is done to simplify your work **without limiting you**!
- [Installation](#installation)
- [Player](#player)
@ -57,9 +57,9 @@ client.on("ready", () => {
client.login(settings.token);
```
You can pass a third parameter when instantiating the class Player: the **options** object:
**options.leaveOnEnd**: whether the bot should leave the voice channel when there is no more song in the queue.
**options.leaveOnStop**: whether the bot should leave the voice channel when the `stop()` function is used.
You can pass a third parameter when instantiating the class Player: the **options** object:
**options.leaveOnEnd**: whether the bot should leave the voice channel when there is no more song in the queue.
**options.leaveOnStop**: whether the bot should leave the voice channel when the `stop()` function is used.
### Play

View file

@ -53,7 +53,7 @@
<a href="https://npmjs.com/discord-player"><img src="https://img.shields.io/npm/v/discord-player?style=for-the-badge" alt="versionBadge"></a>
<a href="https://patreon.com/Androz2091"><img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.herokuapp.com%2FAndroz2091%2Fpledges&amp;style=for-the-badge" alt="patreonBadge"></a></p>
<p><strong>Note</strong>: this module uses recent discordjs features and requires discord.js version 12.</p>
<p>Discord Player is a powerful <a href="https://nodejs.org">Node.js</a> module that allows you to easily implement music commands. Everything is customizable, and everything is done to simplify your work without limiting you!</p>
<p>Discord Player is a powerful <a href="https://nodejs.org">Node.js</a> module that allows you to easily implement music commands. <strong>Everything</strong> is customizable, and everything is done to simplify your work <strong>without limiting you</strong>!</p>
<ul>
<li><a href="#installation">Installation</a></li>
<li><a href="#player">Player</a>
@ -98,8 +98,8 @@ client.on(&quot;ready&quot;, () => {
client.login(settings.token);
</code></pre>
<p>You can pass a third parameter when instantiating the class Player: the <strong>options</strong> object:
<strong>options.leaveOnEnd</strong>: whether the bot should leave the voice channel when there is no more song in the queue.
<p>You can pass a third parameter when instantiating the class Player: the <strong>options</strong> object:<br>
<strong>options.leaveOnEnd</strong>: whether the bot should leave the voice channel when there is no more song in the queue.<br>
<strong>options.leaveOnStop</strong>: whether the bot should leave the voice channel when the <code>stop()</code> function is used.</p>
<h3>Play</h3>
<p>To play a song, use the <code>client.manager.play()</code> function.</p>