mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix
This commit is contained in:
@@ -17,9 +17,6 @@ module.exports = class PauseCommand extends Command {
|
||||
run(msg) {
|
||||
const connection = getVoiceConnection(msg.guild.id);
|
||||
if (!connection) return msg.reply('I am not in a voice channel.');
|
||||
if (!msg.channel.permissionsFor(msg.author).has('MOVE_MEMBERS') && connection.channel.members.size > 2) {
|
||||
return msg.reply('You need the "Move members" permission to stop playing audio.');
|
||||
}
|
||||
if (!this.client.dispatchers.has(msg.guild.id)) {
|
||||
return msg.reply(`I am not currently playing audio in this server.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user