Fix moment deprecation, don't count categories in channel count

This commit is contained in:
Daniel Odendahl Jr
2018-10-25 00:23:51 +00:00
parent 9e14a7e7c5
commit 64c05b0860
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class ServerInfoCommand extends Command {
.addField(' Owner', msg.guild.owner.user.tag, true)
.addField(' Members', msg.guild.memberCount, true)
.addField(' Roles', msg.guild.roles.size, true)
.addField(' Channels', msg.guild.channels.size, true);
.addField(' Channels', msg.guild.channels.filter(channel => channel.type !== 'category').size, true);
return msg.embed(embed);
}
};
+1 -1
View File
@@ -54,7 +54,7 @@ module.exports = class TwitterCommand extends Command {
.addField(' Following', formatNumber(body.friends_count), true)
.addField(' Protected?', body.protected ? 'Yes' : 'No', true)
.addField(' Verified?', body.verified ? 'Yes' : 'No', true)
.addField(' Creation Date', moment.utc(body.created_at).format('MM/DD/YYYY h:mm A'), true)
.addField(' Creation Date', moment.utc(new Date(body.created_at)).format('MM/DD/YYYY h:mm A'), true)
.addField(' Latest Tweet', latest);
return msg.embed(embed);
} catch (err) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "95.1.11",
"version": "95.1.12",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {