From df1a2f5dab24c656c29ce3d2509c798a7aca42ea Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 25 Jun 2017 01:24:42 +0000 Subject: [PATCH] A --- commands/random/portal-send.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/random/portal-send.js b/commands/random/portal-send.js index 7ae761ee..968878b8 100644 --- a/commands/random/portal-send.js +++ b/commands/random/portal-send.js @@ -26,6 +26,7 @@ module.exports = class PortalSendCommand extends Command { const { message } = args; const channel = this.client.channels.filter((c) => { 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('')) return true; else return false; }).random();