jsdoc correction

This commit is contained in:
Snowflake107 2021-06-17 19:11:30 +05:45
parent 4ed330958c
commit b2197d4f48

View file

@ -27,14 +27,14 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
/** /**
* Creates new Discord Player * Creates new Discord Player
* @param {Discord.Client} client The Discord Client * @param {Client} client The Discord Client
*/ */
constructor(client: Client, options: DiscordPlayerInitOptions = {}) { constructor(client: Client, options: DiscordPlayerInitOptions = {}) {
super(); super();
/** /**
* The discord.js client * The discord.js client
* @type {Discord.Client} * @type {Client}
*/ */
this.client = client; this.client = client;
@ -139,7 +139,7 @@ class DiscordPlayer extends EventEmitter<PlayerEvents> {
/** /**
* Search tracks * Search tracks
* @param {string|Track} query The search query * @param {string|Track} query The search query
* @param {Discord.User} requestedBy The person who requested track search * @param {User} requestedBy The person who requested track search
* @returns {Promise<{playlist?: Playlist; tracks: Track[]}>} * @returns {Promise<{playlist?: Playlist; tracks: Track[]}>}
*/ */
async search(query: string | Track, options: SearchOptions) { async search(query: string | Track, options: SearchOptions) {