fix bug the third

This commit is contained in:
Stanley Dimant
2025-01-05 02:37:55 +01:00
parent 62a8ac8ae4
commit e289478397

View File

@@ -274,7 +274,7 @@ internal class DiscordBot : IHostedService
await foreach (var userList in guild.GetUsersAsync(new RequestOptions { CancelToken = token }).ConfigureAwait(false)) await foreach (var userList in guild.GetUsersAsync(new RequestOptions { CancelToken = token }).ConfigureAwait(false))
{ {
_logger.LogInformation("Processing chunk of {count} users, total processed: {proc}, total roles: {total}, roles added: {added}, users kicked: {kicked}, users plan to kick: {planToKick}, fresh user: {fresh}", _logger.LogInformation("Processing chunk of {count} users, total processed: {proc}, total roles: {total}, roles added: {added}, users kicked: {kicked}, users plan to kick: {planToKick}, fresh user: {fresh}",
userList.Count, processedUsers, totalRoles, addedRoles, kickedUsers, toRemoveUsers, freshUsers); userList.Count, processedUsers, totalRoles + addedRoles, addedRoles, kickedUsers, toRemoveUsers, freshUsers);
foreach (var user in userList) foreach (var user in userList)
{ {
if (registeredUsers.Contains(user.Id)) if (registeredUsers.Contains(user.Id))