Fixed pause message, handle blank names better

This commit is contained in:
Essem 2022-01-05 18:48:08 -06:00
parent e692077ed5
commit 3234688929
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 30 additions and 26 deletions

View file

@ -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";