Only one filter at once in v4
gaam24 opened this issue · 3 comments
gaam24 commented
On v4 when I change filter by setRotation, setEqualizer etc. when other filter was set before this, it was reset and only new one was apply.
This same is when anyone filter was applied and volume was changed. Clear all filters and set volume.
Deivu commented
Will check once able to
gaam24 commented
I think problem is in there playerOptions: { filters: { tremolo }}
public async setTremolo(tremolo?: FreqSettings): Promise<void> {
await this.node.rest.updatePlayer({
guildId: this.connection.guildId,
playerOptions: { filters: { tremolo }}
});
this.filters.tremolo = tremolo || null;
}
because when I use updatePlayer() with filters from player class after use setTremolo() all filters are working
await player.node.rest.updatePlayer({
guildId: player.connection.guildId,
playerOptions: { filters: player.filters}
});
Deivu commented
Fixed in latest master commits in commits 76dca52
onwards