1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-29 02:29:55 +03:00

More fixups

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-07-08 13:19:13 +05:00
parent 9d7ebb8fec
commit 20ffbbaafb
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
5 changed files with 29 additions and 17 deletions

View file

@ -141,6 +141,7 @@ public class BanCommandGroup : CommandGroup {
var memberData = data.GetMemberData(target.ID);
memberData.BannedUntil
= duration is not null ? DateTimeOffset.UtcNow.Add(duration.Value) : DateTimeOffset.MaxValue;
memberData.Roles.Clear();
responseEmbed = new EmbedBuilder().WithSmallTitle(
string.Format(Messages.UserBanned, target.GetTag()), target)