code refactoring

This commit is contained in:
Hazem Krimi
2020-05-13 13:10:17 +01:00
parent 03631a3cbe
commit b20b8607c7
6 changed files with 78 additions and 163 deletions
+1
View File
@@ -42,6 +42,7 @@ module.exports = class Play extends Command {
message.guild.music.isPlaying = false;
message.guild.music.nowPlaying = null;
message.guild.music.dispatcher = null;
message.guild.music.seek = null;
message.guild.music.queue = [];
voiceChannel.leave();
const embed = new MessageEmbed().setColor('#000099').setTitle(':stop_button: Stopped player and cleared queue');