Fix portal-send bug

This commit is contained in:
Dragon Fire
2020-04-20 21:29:00 -04:00
parent 060a21a0b1
commit a4cdbe52e7
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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('<xiao:portal>')
);
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.`);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "113.7.0",
"version": "113.7.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {