- fix spotify playlist playback
- fix spotify playlist embed failing due to too long description - fix not removing current playlist after adding another - exchanged Description and Tracks field in playlist embed
This commit is contained in:
@@ -206,14 +206,14 @@ namespace TomatenMusic.Commands
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
try
|
||||
{
|
||||
if (response.isPlaylist)
|
||||
{
|
||||
LavalinkPlaylist playlist = response.Playlist;
|
||||
await player.PlayPlaylistAsync(playlist);
|
||||
|
||||
_ = ctx.EditResponseAsync(new DiscordWebhookBuilder().WithContent("Now Playing:").AddEmbed(
|
||||
await ctx.EditResponseAsync(new DiscordWebhookBuilder().WithContent("Now Playing:").AddEmbed(
|
||||
Common.AsEmbed(playlist)
|
||||
));
|
||||
|
||||
@@ -231,7 +231,7 @@ namespace TomatenMusic.Commands
|
||||
catch (Exception ex)
|
||||
{
|
||||
await ctx.EditResponseAsync(new DiscordWebhookBuilder()
|
||||
.WithContent($"❌ An error occured while playing your Track: ``{ex.Message}``")
|
||||
.WithContent($"❌ An error occured while playing your Track: ``{ex.Message}``, ```{ex.StackTrace}```")
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user