mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Clean-Ups
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class JoinRoleCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -8,6 +8,7 @@ module.exports = class JoinRoleCommand extends Command {
|
||||
memberName: 'join-role',
|
||||
description: 'Sets a role that new members are automatically joined to.',
|
||||
guildOnly: true,
|
||||
userPermissions: ['ADMINISTRATOR'],
|
||||
args: [
|
||||
{
|
||||
key: 'role',
|
||||
@@ -18,11 +19,6 @@ module.exports = class JoinRoleCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
hasPermission(msg) {
|
||||
if (!msg.member.hasPermission('ADMINISTRATOR')) return 'You do not have the `Administrator` Permission.';
|
||||
else return true;
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { role } = args;
|
||||
msg.guild.settings.set('joinRole', role.id);
|
||||
|
||||
Reference in New Issue
Block a user