log(n)
log(n)
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
We don't have 75k and its a single-server bot so no issue
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
Technically in some guilds don't you only get members in VCs if they're over the large guild threshold?
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
ah, I misunderstood what you said. What about for getting members per presence? Do I fetch the full member list??
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
.memberCount exists though Thinkeng
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
I'm still getting nulls, I enabled GuildPresences as well
const guild = await client.guilds.fetch({ guild: env.MAIN_GUILD_ID, withCounts: true });

this.container.metricsManager.writePoint(
new Point("member-count")
.intField("members", guild.approximateMemberCount)
.intField("onlineMembers", guild.approximatePresenceCount)
);
const guild = await client.guilds.fetch({ guild: env.MAIN_GUILD_ID, withCounts: true });

this.container.metricsManager.writePoint(
new Point("member-count")
.intField("members", guild.approximateMemberCount)
.intField("onlineMembers", guild.approximatePresenceCount)
);
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
Should I be using .membercount or .approximatemembercount?
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
(ping for replies please)
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
Node 18.17.0
this.container.metricsManager.writePoint(
new Point("member-count").intField("members", client.guilds.cache.get(env.MAIN_GUILD_ID)!.approximateMemberCount)
);
this.container.metricsManager.writePoint(
new Point("member-count").intField("members", client.guilds.cache.get(env.MAIN_GUILD_ID)!.approximateMemberCount)
);
The error is the Influx client showing me that the guild's .approximateMemberCount is null
11 replies
DIAdiscord.js - Imagine an app
Created by log(n) on 1/5/2024 in #djs-questions
Guild .memberCount vs .approximateMemberCount?
└─ mw-analytics@workspace:.
└─ discord.js@npm:14.14.1 (via npm:^14.14.1)
└─ mw-analytics@workspace:.
└─ discord.js@npm:14.14.1 (via npm:^14.14.1)
11 replies