Skip to content

Commit

Permalink
fix: clear nowPlaying
Browse files Browse the repository at this point in the history
  • Loading branch information
devianllert committed Aug 30, 2019
1 parent 7c57476 commit 87b7a05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/BotMediaPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ class MediaPlayer {
public clear(): void {
if (this.playing || this.paused) this.stop();

this.nowPlaying = undefined;
this.queue.clear();

if (this.channel) this.channel.send(':cd: Playlist Cleared');
Expand Down

0 comments on commit 87b7a05

Please sign in to comment.