mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Fix Errors?
This commit is contained in:
+2
-3
@@ -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}>`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user