diff --git a/commands/random/portal-send.js b/commands/random/portal-send.js index a6d3a9ed..17501ce0 100644 --- a/commands/random/portal-send.js +++ b/commands/random/portal-send.js @@ -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.guild.id !== msg.guild.id && c.type === 'text'); const channel = parseTopic(channels, 'portal', this.client.user).random(); if (!channel) return msg.say('Aww... No channel has an open portal...'); try { diff --git a/package.json b/package.json index fbc74c71..fa366c33 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "28.1.0", + "version": "28.1.1", "description": "Your personal server companion.", "main": "Shard.js", "scripts": {