mirror of
https://github.com/hazemKrimi/discord-bot.git
synced 2026-05-01 18:30:25 +00:00
improved pause command
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class Play extends Command {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
message.guild.music.paused = true;
|
message.guild.music.paused = true;
|
||||||
message.guild.music.dispatcher.pause(true);
|
message.guild.music.dispatcher.pause();
|
||||||
const embed = new MessageEmbed().setColor('#000099').setTitle(':pause_button: Paused player');
|
const embed = new MessageEmbed().setColor('#000099').setTitle(':pause_button: Paused player');
|
||||||
return await message.say({ embed });
|
return await message.say({ embed });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user