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

wait, he's right

Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com>
This commit is contained in:
Macintxsh 2023-09-27 11:09:36 +03:00 committed by GitHub
parent 0c782d3ba0
commit 7966b9dce5
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,11 +259,11 @@ public class BanCommandGroup : CommandGroup
var unbanResult = await _guildApi.RemoveGuildBanAsync( var unbanResult = await _guildApi.RemoveGuildBanAsync(
guildId, target.ID, $"({user.GetTag()}) {reason}".EncodeHeader(), guildId, target.ID, $"({user.GetTag()}) {reason}".EncodeHeader(),
ct); ct);
data.GetOrCreateMemberData(target.ID).BannedUntil = null;
if (!unbanResult.IsSuccess) if (!unbanResult.IsSuccess)
{ {
return Result.FromError(unbanResult.Error); return Result.FromError(unbanResult.Error);
} }
data.GetOrCreateMemberData(target.ID).BannedUntil = null;
var embed = new EmbedBuilder().WithSmallTitle( var embed = new EmbedBuilder().WithSmallTitle(
string.Format(Messages.UserUnbanned, target.GetTag()), target) string.Format(Messages.UserUnbanned, target.GetTag()), target)