galactic-bot/structure/client/components/commands/administration/Permissions.js

40 lines
843 B
JavaScript
Raw Normal View History

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>',
aliases: [
'perms',
'permission',
'perm'
],
examples: [
2020-05-08 19:36:28 +02:00
'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;