mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
Revert "sleep cuz code is too fast"
This reverts commit 578c0387
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
d9092d1058
commit
34573d7b65
1 changed files with 6 additions and 4 deletions
|
@ -35,11 +35,13 @@ public class GuildMemberLeftResponder : IResponder<IGuildMemberRemove>
|
|||
var data = await _guildData.GetData(gatewayEvent.GuildID, ct);
|
||||
var cfg = data.Settings;
|
||||
|
||||
await Task.Delay(1000, ct);
|
||||
// if you'll find a better solution, go ahead and make a PR
|
||||
|
||||
var memberData = data.GetOrCreateMemberData(user.ID);
|
||||
if (memberData.BannedUntil is not null || memberData.Kicked)
|
||||
if (memberData.BannedUntil is not null)
|
||||
{
|
||||
return Result.FromSuccess();
|
||||
}
|
||||
|
||||
if (memberData.Kicked)
|
||||
{
|
||||
return Result.FromSuccess();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue