utility.guildinfo: fix missing .length on bot counts
This commit is contained in:
parent
441121cd5e
commit
877398686b
1 changed files with 2 additions and 2 deletions
|
@ -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}`,
|
||||
|
|
Loading…
Reference in a new issue