forked from TeamInklings/Octobot
Set MemberData.BannedUntil to null in /unban (#114)
Please keep `MemberData` clean of unnecessary values. --------- Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com>
This commit is contained in:
parent
3a3865ba3d
commit
1ab5a640a9
1 changed files with 2 additions and 0 deletions
|
@ -264,6 +264,8 @@ public class BanCommandGroup : CommandGroup
|
|||
return Result.FromError(unbanResult.Error);
|
||||
}
|
||||
|
||||
data.GetOrCreateMemberData(target.ID).BannedUntil = null;
|
||||
|
||||
var embed = new EmbedBuilder().WithSmallTitle(
|
||||
string.Format(Messages.UserUnbanned, target.GetTag()), target)
|
||||
.WithColour(ColorsList.Green).Build();
|
||||
|
|
Reference in a new issue