This commit is contained in:
Daniel Odendahl Jr
2017-08-22 00:50:56 +00:00
parent d5cff06e61
commit 7bb886770f
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = class PortalSendCommand extends Command {
async run(msg, args) {
const { message } = args;
const channels = this.client.channels.filter(c => c.guild.id !== msg.guild.id);
const channels = this.client.channels.filter(c => c.type === 'text' && c.guild.id !== msg.guild.id);
const channel = filterTopics(channels, 'portal').random();
if (!channel) return msg.say('Aww... No channel has an open portal...');
try {