Skip to content

Commit

Permalink
chore: lint and fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Aug 28, 2024
1 parent 14ad397 commit 15d0038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/guild/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class Connection extends EventEmitter {

/**
* Updates SessionId, ChannelId, Deafen and Mute data of this instance
*
* @param options
* @param options.session_id Id of the current session
* @param options.channel_id Id of the connected voice channel
* @param options.self_deaf Boolean that indicates if the current bot user is deafened or not
Expand Down
9 changes: 1 addition & 8 deletions src/guild/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ export class Player extends TypedEventEmitter<PlayerEvents> {
* Filters on current track
*/
public filters: FilterOptions;
/**
* @param node An instance of Node (Lavalink API wrapper)
* @param connection An instance of connection class
*/
constructor(guildId: string, node: Node) {
super();
this.guildId = guildId;
Expand Down Expand Up @@ -277,8 +273,6 @@ export class Player extends TypedEventEmitter<PlayerEvents> {

/**
* Play a new track
* @param playable Options for playing this track
* @param noReplace Set it to true if you don't want to replace the currently playing track
*/
public playTrack(playerOptions: PlayOptions, noReplace = false): Promise<void> {
return this.update(playerOptions, noReplace);
Expand Down Expand Up @@ -461,8 +455,7 @@ export class Player extends TypedEventEmitter<PlayerEvents> {
if (!noReplace) this.paused = false;

if (playerOptions.filters) {
const filters = { ...this.filters, ...playerOptions.filters };
this.filters = filters;
this.filters = { ...this.filters, ...playerOptions.filters };
}

if (typeof playerOptions.track !== 'undefined')
Expand Down

0 comments on commit 15d0038

Please sign in to comment.