utility.guildinfo: fix missing .length on bot counts

This commit is contained in:
Cynthia Foxwell 2023-10-08 15:55:57 -06:00
parent 441121cd5e
commit 877398686b

View file

@ -1975,10 +1975,10 @@ guildinfo.callback = async function (msg, line) {
const online = members.filter(
(member) => member.status != "offline"
).length;
const bots = members.filter((member) => member.bot);
const bots = members.filter((member) => member.bot).length;
const verfifiedBots = members.filter(
(member) => member.bot && (member.user.flags & 65536) != 0
);
).length;
embed.fields.push({
name: "Member Count",
value: `<:online:1152111668856361010>${online} online\t\t<:offline:1152111682886316042>${guild.memberCount} members\n<:boat:546212361472835584> ${bots}, \u2713 ${verfifiedBots}`,