📝 Add shuffle example

This commit is contained in:
Androz2091 2020-06-21 17:17:36 +02:00
parent 8243539f3f
commit bbfe529177

View file

@ -376,6 +376,19 @@ class Player {
* @param {Discord.Snowflake} guildID The ID of the guild where the track should be removed
* @param {number|Track} track The index of the track to remove or the track to remove object
* @returns {Promise<Track|null>}
*
* @example
* client.on('message', async (message) => {
* const args = message.content.slice(settings.prefix.length).trim().split(/ +/g);
* const command = args.shift().toLowerCase();
*
* if(command === 'remove'){
* // Removes a track from the queue
* client.player.remove(message.guild.id, args[0]).then(() => {
* message.channel.send('Removed track!');
* });
* }
* });
*/
remove (guildID, track) {
return new Promise((resolve, reject) => {