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:
parent
cd4db2c87a
commit
818f702083
1 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue