Fix Errors?

This commit is contained in:
Daniel Odendahl Jr
2017-09-07 18:55:03 +00:00
parent 8959581614
commit 91f62a9989
3 changed files with 12 additions and 5 deletions
+2 -3
View File
@@ -33,9 +33,8 @@ class Util {
static filterTopics(channels, setting) {
return channels.filter(c => {
if (c.type !== 'text' || !c.topic) return false;
if (c.topic.includes(`<${setting}>`)) return true;
return false;
if (c.type !== 'text' || !c.topic || !c.permissionsFor(c.client.user).has('SEND_MESSAGES')) return false;
return c.topic.includes(`<${setting}>`);
});
}