mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
More Bugs Squshed
This commit is contained in:
+3
-1
@@ -44,7 +44,9 @@ class Util {
|
||||
|
||||
static filterTopics(channels, setting) {
|
||||
return channels.filter(c => {
|
||||
if (c.type !== 'text' || !c.topic || !c.permissionsFor(c.client.user).has('SEND_MESSAGES')) return false;
|
||||
if (c.type !== 'text') return false;
|
||||
if (!c.topic) return false;
|
||||
if (!c.permissionsFor(c.client.user).has('SEND_MESSAGES')) return false;
|
||||
if (c.topic.includes(`<${setting}>`)) return true;
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user