mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 12:36:01 +00:00
Fix code to work on this decade 1/x
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
name: 'permissions',
|
||||
async execute(message, args, client, Discord, prefix) {
|
||||
async execute(message, args, client, prefix) {
|
||||
if (!args[2]) return message.channel.send(`🔒 Permission requirement: \`${client.global.db.guilds[message.guild.id].permissions}\``);
|
||||
if (args[2] === 'true') {
|
||||
if (!client.global.db.guilds[message.guild.id].permissions) {
|
||||
@ -14,4 +14,4 @@ module.exports = {
|
||||
} else return message.channel.send(':x: That value is already `false`!');
|
||||
} else return message.channel.send(':x: Please define a boolean! (true/false)');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user