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