Fixed pause message, handle blank names better
This commit is contained in:
parent
e692077ed5
commit
3234688929
2 changed files with 30 additions and 26 deletions
|
@ -8,7 +8,7 @@ class PauseCommand extends MusicCommand {
|
|||
if (this.connection.host !== this.message.author.id && !this.message.member.permissions.has("manageChannels")) return "Only the current voice session host can pause/resume the music!";
|
||||
const player = this.connection.player;
|
||||
await player.pause(!player.paused ? true : false);
|
||||
return `🔊 The player has been ${!player.paused ? "paused" : "resumed"}.`;
|
||||
return `🔊 The player has been ${player.paused ? "paused" : "resumed"}.`;
|
||||
}
|
||||
|
||||
static description = "Pauses/resumes the current song";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue