Skip to content

Commit

Permalink
fix: /play erroring while trying to parse playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
reishimanfr committed Apr 26, 2024
1 parent adac9d0 commit c040622
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Commands/music/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const play: Command = {
.setStyle(ButtonStyle.Secondary)
)

const response = await interaction.reply({
const response = await interaction.editReply({
content: "\`❓\` - This link seems to lead to a playlist. Do you want to load it?",
components: [buttons]
})
Expand Down
2 changes: 0 additions & 2 deletions src/Events/Poru/PlayerDestroy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const PlayerDestroy: Event = {
const embed: EmbedBuilder = (await player.messageManger.createPlayerEmbed(true))[0]
const buttons = player.messageManger.createPlayerButtons(true)

console.log(embed)

const descriptionSplit = embed.data.description?.split('\n')

embed.setDescription(`${descriptionSplit?.[0] ?? ''}`)
Expand Down

0 comments on commit c040622

Please sign in to comment.