1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00

Null MemberData.BannedUntil

Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com>
This commit is contained in:
Macintxsh 2023-09-27 00:25:39 +03:00 committed by GitHub
parent 3a3865ba3d
commit 5aa161ed33
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,9 +256,11 @@ public class BanCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(errorEmbed, ct);
}
var memberData = data.GetOrCreateMemberData(target.ID);
var unbanResult = await _guildApi.RemoveGuildBanAsync(
guildId, target.ID, $"({user.GetTag()}) {reason}".EncodeHeader(),
ct);
memberData.MutedUntil = null;
if (!unbanResult.IsSuccess)
{
return Result.FromError(unbanResult.Error);