Attempt to Fix Bug

This commit is contained in:
Daniel Odendahl Jr
2017-08-21 21:29:48 +00:00
parent 8d6e964698
commit 91c4c30aee
7 changed files with 7 additions and 9 deletions
+1 -3
View File
@@ -44,9 +44,7 @@ class Util {
static filterTopics(channels, setting) {
return channels.filter(c => {
if (c.type !== 'text') return false;
if (!c.topic) return false;
if (!c.permissionsFor(c.client.user).has('SEND_MESSAGES')) return false;
if (c.type !== 'text' || !c.topic) return false;
if (c.topic.includes(`<${setting}>`)) return true;
return false;
});