mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Require MOVE_MEMBERS for voice commands
This commit is contained in:
@@ -19,6 +19,9 @@ module.exports = class PauseCommand extends Command {
|
||||
if (connection.canPlay) {
|
||||
return msg.reply('I am not currently playing audio in this server.');
|
||||
}
|
||||
if (!connection.channel.permissionsFor(msg.author).has('MOVE_MEMBERS')) {
|
||||
return msg.reply(`You need the "MOVE_MEMBERS" permission to use the \`${this.name}\` command.`);
|
||||
}
|
||||
connection.pause();
|
||||
return msg.reply('Paused playing.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user