mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Meow
This commit is contained in:
@@ -38,6 +38,8 @@ client.registry
|
|||||||
client.dispatcher.addInhibitor(msg => {
|
client.dispatcher.addInhibitor(msg => {
|
||||||
const role = msg.guild.settings.get('singleRole');
|
const role = msg.guild.settings.get('singleRole');
|
||||||
if(!role) return false;
|
if(!role) return false;
|
||||||
|
if(client.isOwner(msg.author)) return false;
|
||||||
|
if(msg.member.hasPermission('ADMINISTRATOR')) return false;
|
||||||
if(!msg.member.roles.has(role))
|
if(!msg.member.roles.has(role))
|
||||||
return `Only the ${msg.guild.roles.get(role).name} may use commands.`;
|
return `Only the ${msg.guild.roles.get(role).name} may use commands.`;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user