This commit is contained in:
Daniel Odendahl Jr
2017-05-04 20:49:59 +00:00
parent b66da03c74
commit b0444e669c
+1 -1
View File
@@ -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) => {