mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-21 22:34:36 +00:00
Remove extra logging
This commit is contained in:
parent
d06955bf12
commit
5fcc36ab10
1 changed files with 1 additions and 4 deletions
|
@ -377,10 +377,7 @@ internal class Commands {
|
||||||
if (guild.MemberCount > 30) {
|
if (guild.MemberCount > 30) {
|
||||||
// For guilds of size over 30, require 85% or more of the members to be known
|
// For guilds of size over 30, require 85% or more of the members to be known
|
||||||
// (26/30, 42/50, 255/300, etc)
|
// (26/30, 42/50, 255/300, etc)
|
||||||
int threshold = (int)(guild.MemberCount * 0.85);
|
return guild.DownloadedMemberCount>= (int)(guild.MemberCount * 0.85);
|
||||||
Program.Log(nameof(HasMostMembersDownloaded),
|
|
||||||
$"Passing with {guild.DownloadedMemberCount}/{guild.MemberCount} in cache for guild {guild.Id}.");
|
|
||||||
return guild.DownloadedMemberCount >= threshold;
|
|
||||||
} else {
|
} else {
|
||||||
// For smaller guilds, fail if two or more members are missing
|
// For smaller guilds, fail if two or more members are missing
|
||||||
return guild.MemberCount - guild.DownloadedMemberCount <= 2;
|
return guild.MemberCount - guild.DownloadedMemberCount <= 2;
|
||||||
|
|
Loading…
Reference in a new issue