Update to eris#dev
This commit is contained in:
parent
ab51231fef
commit
53b64682ee
5 changed files with 33 additions and 22 deletions
|
@ -4,6 +4,7 @@ import {
|
|||
embedPadding,
|
||||
EmbedWith,
|
||||
formatNumber,
|
||||
inviteHasCounts,
|
||||
memoize,
|
||||
MINUTES,
|
||||
preEmbedPadding,
|
||||
|
@ -120,7 +121,7 @@ export async function getServerInfoEmbed(
|
|||
if (onlineMemberCount == null && restGuild?.vanityURL) {
|
||||
// For servers with a vanity URL, we can also use the numbers from the invite for online count
|
||||
const invite = await resolveInvite(pluginData.client, restGuild.vanityURL!, true);
|
||||
if (invite) {
|
||||
if (invite && inviteHasCounts(invite)) {
|
||||
onlineMemberCount = invite.presenceCount;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue