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