-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve JSDocs to be more descriptive and better overall #101
Conversation
import { Filters } from "./Filters" | ||
import { Response, LoadTrackResponse } from "../guild/Response" | ||
|
||
type Loop = "NONE" | "TRACK" | "QUEUE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was the jsdoc removed of loop
type?
* @param {Node | undefined} node Node or undefined | ||
* @returns {Promise<Response>} The Response of the resolved tracks | ||
* Resolves a track. | ||
* @param {ResolveOptions} options - Options for resolving tracks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably an invalid param as there no param called as options
defined in the resolve
function
Overall looks Good, Discussing about the breaking changes firstly the
true, that's actually what it does completely stops the current playing track. I might be wrong don't mind it and correct me. Apart from this I'll wait 24h for @parasop to review if he doesn't in 24h I'll merge this. (If I don't or forgot to do so Kindly Reminder me 😅) -- Thanks UnschooledGamer |
The thing about the client (at least for discord.js, not sure about other libraries) is that you can't access the |
As a user of the library I avoided the |
It's most likely the same as after the bot successfully connects discord Gateway it returns the information about the user id etc. |
Probably yeah. So the client parameter seems to be redundant here then. |
|
I'm not saying |
Ah, doesn't feel for me. stop means it stops the player and destroy means it destroys the player. |
Still, I feel like |
I've improved all relevant JSDocs across files
Player.ts
,Poru.ts
,Queue.ts
, andResponse.ts
so they have a more descriptive JSDoc comment. I also fixed some spelling issues/sentences that made no sense.Breaking changes:
player.stop
method toplayer.skip
instead asstop
implies a complete stop of the player's playback whereskip
implies skipping the currently playing songporu.init
(that being the client parameter) as it's already provided in poru's constructor