fix: Fix method

This commit is contained in:
Mira 2025-04-07 21:35:11 +02:00
parent b0318f5602
commit f2b6f1aaa4
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36
5 changed files with 37 additions and 37 deletions

View file

@ -39,7 +39,7 @@ internal sealed class ScoreSaberProfileCommand : BaseCommand
user = await ctx.Client.GetUserAsync(Convert.ToUInt64(Regex.Match(id, @"<@((!?)(\d*))>").Groups[3].Value));
else
{
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(new DiscordEmbedBuilder
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(new DiscordEmbedBuilder
{
Description = this.GetString(CommandKey.Profile.InvalidInput, true)
}.AsError(ctx, "Score Saber")));
@ -51,7 +51,7 @@ internal sealed class ScoreSaberProfileCommand : BaseCommand
}
catch (DisCatSharp.Exceptions.NotFoundException)
{
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(new DiscordEmbedBuilder
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(new DiscordEmbedBuilder
{
Description = this.GetString(CommandKey.Profile.NoUser, true)
}.AsError(ctx, "Score Saber")));
@ -65,7 +65,7 @@ internal sealed class ScoreSaberProfileCommand : BaseCommand
}
else
{
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(new DiscordEmbedBuilder
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(new DiscordEmbedBuilder
{
Description = this.GetString(CommandKey.Profile.NoProfile, true)
}.AsError(ctx, "Score Saber")));