diff --git a/commands/other/portal-send.js b/commands/other/portal-send.js index 100d4cef..7fb4cc32 100644 --- a/commands/other/portal-send.js +++ b/commands/other/portal-send.js @@ -29,9 +29,7 @@ module.exports = class PortalSendCommand extends Command { let channels = this.client.channels.cache.filter( channel => channel.guild && channel.topic && channel.topic.includes('') ); - if (channel.guild) { - channels = channels.filter(channel => !msg.guild.channels.cache.has(channel.id)); - } + if (msg.guild) channels = channels.filter(channel => !msg.guild.channels.cache.has(channel.id)); if (message.toLowerCase() === 'count') { return msg.say(`**${this.portalEmoji} ${channels.size}** currently open portals.`); } diff --git a/package.json b/package.json index f2e5436b..0e7649be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "113.7.0", + "version": "113.7.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {