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:
parent
0c782d3ba0
commit
7966b9dce5
1 changed files with 1 additions and 1 deletions
|
@ -259,11 +259,11 @@ public class BanCommandGroup : CommandGroup
|
|||
var unbanResult = await _guildApi.RemoveGuildBanAsync(
|
||||
guildId, target.ID, $"({user.GetTag()}) {reason}".EncodeHeader(),
|
||||
ct);
|
||||
data.GetOrCreateMemberData(target.ID).BannedUntil = null;
|
||||
if (!unbanResult.IsSuccess)
|
||||
{
|
||||
return Result.FromError(unbanResult.Error);
|
||||
}
|
||||
data.GetOrCreateMemberData(target.ID).BannedUntil = null;
|
||||
|
||||
var embed = new EmbedBuilder().WithSmallTitle(
|
||||
string.Format(Messages.UserUnbanned, target.GetTag()), target)
|
||||
|
|
Loading…
Add table
Reference in a new issue