Role ban improvements (#6855)

This commit is contained in:
ShadowCommander
2022-02-21 21:00:55 -08:00
committed by GitHub
parent 8ccdff4416
commit 4a68718050
5 changed files with 96 additions and 13 deletions

View File

@@ -53,12 +53,21 @@ public sealed class RoleBanListCommand : IConsoleCommand
var bansString = new StringBuilder("Bans in record:\n");
var first = true;
foreach (var ban in bans)
{
if (!first)
bansString.Append("\n\n");
else
first = false;
bansString
.Append("Ban ID: ")
.Append(ban.Id)
.Append("\n")
.Append('\n')
.Append("Role: ")
.Append(ban.Role)
.Append('\n')
.Append("Banned on ")
.Append(ban.BanTime);
@@ -70,13 +79,11 @@ public sealed class RoleBanListCommand : IConsoleCommand
}
bansString
.Append(".")
.Append("\n");
.Append('\n');
bansString
.Append("Reason: ")
.Append(ban.Reason)
.Append('\n');
.Append(ban.Reason);
}
shell.WriteLine(bansString.ToString());