fixed music

This commit is contained in:
Emily 2020-04-22 19:00:57 +10:00
parent 6ee9122442
commit 98612a7784
3 changed files with 32 additions and 24 deletions

View file

@ -24,11 +24,13 @@ exports.run = async (client, message) => {
if (guild.queue.length < 1 || !guild.playing || !guild.dispatcher) return message.channel.send('Nothing is playing.')
if (!message.member.voice.channel) return message.channel.send('You need to be in voice channel to use this command!')
guild.dispatcher.end('silent')
guild.queue = []
guild.playing = false
guild.paused = false
guild.queue = []
guild.dispatcher.end('silent')
guild.dispatcher = null
guild.skippers = []
message.channel.send('Playback stopped!')
}