Skip to content

Commit

Permalink
fix play command
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Apr 24, 2022
1 parent d57dd8a commit d2e8710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/modules/music/command_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func playAndQueue(b *kbot.Bot, p *message.Printer, i discord.BaseInteraction, tr
}
return
}
if _, err := b.Client.Rest().UpdateInteractionResponse(i.ApplicationID(), i.Token(), responses.UpdateErrorComponentsf(p, "modules.music.commands.play.now.playing", []any{track.Info().Title, *track.Info().URI})); err != nil {
if _, err := b.Client.Rest().UpdateInteractionResponse(i.ApplicationID(), i.Token(), responses.UpdateSuccessComponentsf(p, "modules.music.commands.play.now.playing", []any{track.Info().Title, *track.Info().URI}, getMusicControllerComponents(track))); err != nil {
b.Logger.Error("Error while updating interaction message: ", err)
}
} else {
Expand Down

0 comments on commit d2e8710

Please sign in to comment.