From 38e687cf50824e3efd89932ff3113406ff2470e5 Mon Sep 17 00:00:00 2001 From: Macintosh II Date: Thu, 28 Sep 2023 19:11:51 +0300 Subject: [PATCH] resolving conversations... Signed-off-by: Macintosh II --- src/Commands/ToolsCommandGroup.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Commands/ToolsCommandGroup.cs b/src/Commands/ToolsCommandGroup.cs index 933c1b0..57161fb 100644 --- a/src/Commands/ToolsCommandGroup.cs +++ b/src/Commands/ToolsCommandGroup.cs @@ -42,7 +42,7 @@ public class ToolsCommandGroup : CommandGroup } /// - /// A slash command that shows information about user. + /// A slash command that shows general information about user & user's punishments. /// /// The user to show info about. /// @@ -117,14 +117,14 @@ public class ToolsCommandGroup : CommandGroup if (isMuted) { - ShowInfoMutedUntilAsync(memberData, communicationDisabledUntil, builder); + AppendMuteInformation(memberData, communicationDisabledUntil, builder); embedColor = ColorsList.Red; } if (existingBanResult.IsDefined()) { - ShowInfoBannedUntilAsync(memberData, builder); + AppendBanInformation(memberData, builder); embedColor = ColorsList.Black; } @@ -148,7 +148,7 @@ public class ToolsCommandGroup : CommandGroup return await _feedback.SendContextualEmbedResultAsync(embed, ct); } - private static void ShowInfoBannedUntilAsync(MemberData memberData, StringBuilder builder) + private static void AppendBanInformation(MemberData memberData, StringBuilder builder) { if (memberData.BannedUntil < DateTimeOffset.MaxValue) { @@ -161,7 +161,7 @@ public class ToolsCommandGroup : CommandGroup builder.Append("- ").AppendLine(Messages.ShowInfoBannedPermanently); } - private static void ShowInfoMutedUntilAsync( + private static void AppendMuteInformation( MemberData memberData, DateTimeOffset? communicationDisabledUntil, StringBuilder builder) { builder.Append("- ").AppendLine(Messages.ShowInfoMuted);