mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 18:39:35 +02:00
Fix moment deprecation, don't count categories in channel count
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "95.1.11",
|
||||
"version": "95.1.12",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user