Update helpers.js

This commit is contained in:
MSFTserver 2017-10-27 13:56:11 -07:00 committed by GitHub
parent 7df3c9b53d
commit 841c974dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,4 +8,12 @@ if(message.member.roles.some(r=>permRanks.perms.includes(r.name)) ) {
} else { } else {
return false; return false;
} }
} }
exports.hasSpeechChannels = function(msg){
if(msg.channel.id.some(r=>speechChannels.channelsIDs.includes(r.id)) ) {
return true;
} else {
return false;
}
}