fix bug
This commit is contained in:
@@ -270,13 +270,17 @@ internal class DiscordBot : IHostedService
|
||||
foreach (var user in userList)
|
||||
{
|
||||
if (registeredUsers.Contains(user.Id))
|
||||
{
|
||||
await _botServices.AddRegisteredRoleAsync(user, registrationRole).ConfigureAwait(false);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (kickUnregistered)
|
||||
{
|
||||
if ((executionStartTime - user.JoinedAt.Value).TotalDays > 7)
|
||||
await _botServices.KickUserAsync(user).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
token.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user