This commit is contained in:
Daniel Odendahl Jr
2017-06-25 01:24:42 +00:00
parent 4dfa7db243
commit df1a2f5dab
+1
View File
@@ -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('<portal>')) return true;
else return false;
}).random();