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