2020-05-08 08:50:54 +02:00
|
|
|
const { Command } = require('../../../../interfaces/');
|
|
|
|
|
|
|
|
const { stripIndents } = require('common-tags');
|
|
|
|
|
|
|
|
class GrantCommand extends Command {
|
|
|
|
|
|
|
|
constructor(client) {
|
|
|
|
|
|
|
|
super(client, {
|
|
|
|
name: 'permissions',
|
|
|
|
module: 'administration',
|
2020-05-08 19:36:28 +02:00
|
|
|
usage: '<role|user>',
|
2020-05-08 08:50:54 +02:00
|
|
|
aliases: [
|
|
|
|
'perms',
|
|
|
|
'permission',
|
|
|
|
'perm'
|
|
|
|
],
|
|
|
|
examples: [
|
2020-05-08 19:36:28 +02:00
|
|
|
'Server Moderators',
|
|
|
|
'@nolan#2887'
|
2020-05-08 08:50:54 +02:00
|
|
|
],
|
|
|
|
memberPermissions: ['ADMINISTRATOR', 'MANAGE_SERVER'],
|
|
|
|
guildOnly: true
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async execute(message) {
|
|
|
|
|
|
|
|
await message.guild.permissions();
|
|
|
|
|
|
|
|
message.respond(`\`\`\`js
|
|
|
|
${JSON.stringify(message.guild._permissions)}\`\`\``);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = GrantCommand;
|