1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00

well that was a blunder

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-09-22 22:12:47 +05:00
parent cd4db2c87a
commit 818f702083
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -277,7 +277,7 @@ public class SettingsCommandGroup : CommandGroup
} }
var embed = new EmbedBuilder().WithSmallTitle( var embed = new EmbedBuilder().WithSmallTitle(
string.Format(Messages.SingleSettingReset, option.Name), currentUser) string.Format(Messages.SingleSettingReset, Markdown.InlineCode(option.Name)), currentUser)
.WithColour(ColorsList.Green) .WithColour(ColorsList.Green)
.Build(); .Build();
@ -293,11 +293,9 @@ public class SettingsCommandGroup : CommandGroup
failedResults.AddIfFailed(resetResult); failedResults.AddIfFailed(resetResult);
} }
var errors = failedResults.AggregateErrors(); if (failedResults.Count is not 0)
if (!errors.IsSuccess)
{ {
return errors; return failedResults.AggregateErrors();
} }
var embed = new EmbedBuilder().WithSmallTitle(Messages.AllSettingsReset, currentUser) var embed = new EmbedBuilder().WithSmallTitle(Messages.AllSettingsReset, currentUser)