Fix Role Error

This commit is contained in:
Daniel Odendahl Jr
2017-05-04 21:11:44 +00:00
parent 19be25ede2
commit fa4922d120
+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 ['singleRole', msg.reply(`Only the ${msg.guild.roles.get(role).name} may use commands.`)];
return ['singleRole', msg.reply(`Only the ${msg.guild.roles.get(role).name} role may use commands.`)];
});
client.on('guildMemberAdd', (member) => {