From 4e55e66b3d2cc82119c18af973b84be4ee84572a Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Sun, 21 Jun 2020 17:28:04 +0200 Subject: [PATCH] :pencil: Add example for skip command --- src/Player.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Player.js b/src/Player.js index 7ca6956..54150bf 100644 --- a/src/Player.js +++ b/src/Player.js @@ -303,6 +303,19 @@ class Player { * Skip a track * @param {Discord.Snowflake} guildID The ID of the guild where the track should be skipped * @returns {Promise} + * + * @example + * client.on('message', async (message) => { + * + * const args = message.content.slice(settings.prefix.length).trim().split(/ +/g); + * const command = args.shift().toLowerCase(); + * + * if(command === 'skip'){ + * let track = await client.player.skip(message.guild.id); + * message.channel.send(`${track.name} skipped!`); + * } + * + * }); */ skip (guildID) { return new Promise((resolve, reject) => {