mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Attempt to Fix Bug
This commit is contained in:
+1
-3
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user