fix: Fix method
This commit is contained in:
parent
79e7cffb4e
commit
2ca985d248
14 changed files with 47 additions and 47 deletions
|
|
@ -29,7 +29,7 @@ internal sealed class NewPlaylistCommand : BaseCommand
|
|||
{
|
||||
if (MusicPlugin.Plugin.Users[ctx.User.Id].Playlists.Length >= 10)
|
||||
{
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(new DiscordEmbedBuilder
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(new DiscordEmbedBuilder
|
||||
{
|
||||
Description = this.GetString(CommandKey.Playlists.PlayListLimit, true, new TVar("Count", 10)),
|
||||
}.AsError(ctx, this.GetString(CommandKey.Playlists.Title))));
|
||||
|
|
@ -49,7 +49,7 @@ internal sealed class NewPlaylistCommand : BaseCommand
|
|||
$"`{this.GetString(CommandKey.Playlists.CreatePlaylist.FirstTracks).PadRight(pad)}`: {(SelectedTracks.IsNotNullAndNotEmpty() ? (SelectedTracks.Length > 1 ? $"`{SelectedTracks.Length} {this.GetString(CommandKey.Playlists.Tracks)}`" : $"[`{SelectedTracks[0].Title}`]({SelectedTracks[0].Url})") : this.GetString(this.t.Common.NotSelected, true))}"
|
||||
}.AsAwaitingInput(ctx, this.GetString(CommandKey.Playlists.Title));
|
||||
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(embed)
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(embed)
|
||||
.AddComponents(new List<DiscordComponent> { SelectName, SelectFirstTracks, Finish })
|
||||
.AddComponents(MessageComponents.GetCancelButton(ctx.DbUser, ctx.Bot)));
|
||||
|
||||
|
|
@ -131,7 +131,7 @@ internal sealed class NewPlaylistCommand : BaseCommand
|
|||
|
||||
if (MusicPlugin.Plugin.Users[ctx.User.Id].Playlists.Length >= 10)
|
||||
{
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(new DiscordEmbedBuilder
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(new DiscordEmbedBuilder
|
||||
{
|
||||
Description = this.GetString(CommandKey.Playlists.PlayListLimit, true, new TVar("Count", 10)),
|
||||
}.AsError(ctx, this.GetString(CommandKey.Playlists.Title))));
|
||||
|
|
@ -139,7 +139,7 @@ internal sealed class NewPlaylistCommand : BaseCommand
|
|||
return;
|
||||
}
|
||||
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(new DiscordEmbedBuilder
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(new DiscordEmbedBuilder
|
||||
{
|
||||
Description = this.GetString(CommandKey.Playlists.CreatePlaylist.Creating, true),
|
||||
}.AsLoading(ctx, this.GetString(CommandKey.Playlists.Title))));
|
||||
|
|
@ -152,7 +152,7 @@ internal sealed class NewPlaylistCommand : BaseCommand
|
|||
|
||||
MusicPlugin.Plugin.Users[ctx.User.Id].Playlists = MusicPlugin.Plugin.Users[ctx.User.Id].Playlists.Add(v);
|
||||
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().WithEmbed(new DiscordEmbedBuilder
|
||||
_ = await this.RespondOrEdit(new DiscordMessageBuilder().AddEmbed(new DiscordEmbedBuilder
|
||||
{
|
||||
Description = this.GetString(CommandKey.Playlists.CreatePlaylist.Created, true,
|
||||
new TVar("Playlist", v.PlaylistName),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue