Role ban improvements (#6855)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user