From 9fb493b3dfaabfc2fc2d3d5adb9e8c31b907fed7 Mon Sep 17 00:00:00 2001 From: u-sayuri <54628820+u-sayuri@users.noreply.github.com> Date: Wed, 30 Jun 2021 23:21:19 +0700 Subject: [PATCH] Update Player.ts Add JSDoc descriptions --- src/Player.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Player.ts b/src/Player.ts index 0740c3d..4997fcb 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -141,6 +141,7 @@ export class Player extends EventEmitter { * @param {DiscordMessage} message The message * @param {string} query The query * @param {boolean} [firstResult=false] If it should return the first result + * @param {number} [startFromIndex=0] Prioritise playing the track with following index (Only works with playlist) * @returns {Promise} * @private */ @@ -483,6 +484,7 @@ export class Player extends EventEmitter { * @param {DiscordMessage} message The discord.js message object * @param {string|Track} query Search query, can be `Player.Track` instance * @param {Boolean} [firstResult=false] If it should play the first result + * @param {number} [startFromIndex=0] Prioritise playing the track with following index (Only works with playlist) * @example await player.play(message, "never gonna give you up", true) * @returns {Promise} */