40 lines
843 B
JavaScript
40 lines
843 B
JavaScript
const { Command } = require('../../../../interfaces/');
|
|
|
|
const { stripIndents } = require('common-tags');
|
|
|
|
class GrantCommand extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'permissions',
|
|
module: 'administration',
|
|
usage: "<role|user>",
|
|
aliases: [
|
|
'perms',
|
|
'permission',
|
|
'perm'
|
|
],
|
|
examples: [
|
|
"Server Moderators",
|
|
"@nolan#2887"
|
|
],
|
|
memberPermissions: ['ADMINISTRATOR', 'MANAGE_SERVER'],
|
|
guildOnly: true
|
|
});
|
|
|
|
}
|
|
|
|
async execute(message) {
|
|
|
|
await message.guild.permissions();
|
|
|
|
message.respond(`\`\`\`js
|
|
${JSON.stringify(message.guild._permissions)}\`\`\``);
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
module.exports = GrantCommand; |