mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 22:14:34 +02:00
A
This commit is contained in:
@@ -26,6 +26,7 @@ module.exports = class PortalSendCommand extends Command {
|
|||||||
const { message } = args;
|
const { message } = args;
|
||||||
const channel = this.client.channels.filter((c) => {
|
const channel = this.client.channels.filter((c) => {
|
||||||
if (!c.topic || !c.permissionsFor(this.client.user).has('SEND_MESSAGES')) return false;
|
if (!c.topic || !c.permissionsFor(this.client.user).has('SEND_MESSAGES')) return false;
|
||||||
|
else if (msg.guild.id === c.guild.id) return false;
|
||||||
else if (c.topic.includes('<portal>')) return true;
|
else if (c.topic.includes('<portal>')) return true;
|
||||||
else return false;
|
else return false;
|
||||||
}).random();
|
}).random();
|
||||||
|
|||||||
Reference in New Issue
Block a user