mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
And that
This commit is contained in:
@@ -41,7 +41,7 @@ client.dispatcher.addInhibitor(msg => {
|
||||
if(client.isOwner(msg.author)) return false;
|
||||
if(msg.member.hasPermission('ADMINISTRATOR')) return false;
|
||||
if(!msg.member.roles.has(role))
|
||||
return `Only the ${msg.guild.roles.get(role).name} may use commands.`;
|
||||
return ['singleRole', msg.reply(`Only the ${msg.guild.roles.get(role).name} may use commands.`)];
|
||||
});
|
||||
|
||||
client.on('guildMemberAdd', (member) => {
|
||||
|
||||
Reference in New Issue
Block a user