This commit is contained in:
Emily 2020-04-29 21:21:34 +10:00
parent a31dc02568
commit 5c6938369d
8 changed files with 31 additions and 25 deletions

View file

@ -22,16 +22,16 @@ exports.run = async (client, message, args, level, data) => {
const guild = getGuild(message.guild.id)
if (guild.paused === true) {
return message.channel.send('The music has already been paused! Run resume to start the music again.')
return message.channel.send('<:error:466995152976871434> The music has already been paused! Run resume to start the music again.')
}
if (guild.queue.length < 1 || guild.playing === false) {
return message.channel.send('Nothing is playing!')
return message.channel.send('<:error:466995152976871434> Nothing is playing!')
}
guild.playing = false
guild.paused = true
guild.dispatcher.pause()
message.channel.send('Music paused!')
message.channel.send('<:pause:467639357961142273> Music playback has been paused.')
}