From 48fff57d7a89cb1765dfc6885dd630f84c737d1f Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 13 Jun 2017 03:09:01 +0200 Subject: [PATCH] .lsar formatting fix --- .../Administration/Commands/SelfAssignedRolesCommand.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs b/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs index 187ee7b8..de22a10b 100644 --- a/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs +++ b/src/NadekoBot/Modules/Administration/Commands/SelfAssignedRolesCommand.cs @@ -109,12 +109,11 @@ namespace NadekoBot.Modules.Administration { var toRemove = new ConcurrentHashSet(); var removeMsg = new StringBuilder(); - var msg = new StringBuilder(); + var roles = new List(); var roleCnt = 0; using (var uow = _db.UnitOfWork) { var roleModels = uow.SelfAssignedRoles.GetFromGuild(Context.Guild.Id).ToList(); - msg.AppendLine(); foreach (var roleModel in roleModels) { @@ -126,7 +125,7 @@ namespace NadekoBot.Modules.Administration } else { - msg.Append($"**{role.Name}**, "); + roles.Add(Format.Bold(role.Name)); roleCnt++; } } @@ -136,7 +135,7 @@ namespace NadekoBot.Modules.Administration } await uow.CompleteAsync(); } - await Context.Channel.SendConfirmAsync(GetText("self_assign_list", roleCnt), msg + "\n\n" + removeMsg).ConfigureAwait(false); + await Context.Channel.SendConfirmAsync(GetText("self_assign_list", roleCnt), "\n" + string.Join(", ", roles) + "\n\n" + removeMsg).ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases]