Skip to content

Commit

Permalink
Remove ephemeral flag from interaction replies in music command files
Browse files Browse the repository at this point in the history
Signed-off-by: wiibleyde <nathan@bonnell.fr>
  • Loading branch information
Wiibleyde committed Dec 2, 2024
1 parent 17a0d11 commit 7c3d6d9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/commands/music/back.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ async function back(interaction: CommandInteraction|ButtonInteraction) {

await queue.history.back()

await interaction.reply({ embeds: [successEmbed(interaction, "Musique précédente")], ephemeral: true })
await interaction.reply({ embeds: [successEmbed(interaction, "Musique précédente")] })
}
2 changes: 1 addition & 1 deletion src/commands/music/clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ async function clear(interaction:CommandInteraction|ButtonInteraction) {

queue.tracks.clear()

await interaction.reply({ embeds: [successEmbed(interaction, "File d'attente vidée")], ephemeral: true })
await interaction.reply({ embeds: [successEmbed(interaction, "File d'attente vidée")] })
}
2 changes: 1 addition & 1 deletion src/commands/music/pause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function resumeAndPauseButton(interaction: ButtonInteraction) {

if(!resumed) {
queue.node.pause()
return await interaction.reply({ embeds: [successEmbed(interaction, "Musique mise en pause")], ephemeral: true })
return await interaction.reply({ embeds: [successEmbed(interaction, "Musique mise en pause")] })
}

await interaction.reply({ embeds: [successEmbed(interaction, "Musique reprise")], ephemeral: true })
Expand Down
2 changes: 1 addition & 1 deletion src/commands/music/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function execute(interaction: CommandInteraction) {
},
})

await interaction.reply({ embeds: [successEmbed(interaction, `Musique ajoutée à la file d'attente: [${track.title}](${track.url})`)], ephemeral: true })
await interaction.reply({ embeds: [successEmbed(interaction, `Musique ajoutée à la file d'attente: [${track.title}](${track.url})`)] })
} catch (error) {
logger.error(error)
await interaction.reply({ embeds: [errorEmbed(interaction, new Error("Impossible de jouer la musique."))], ephemeral: true })
Expand Down
2 changes: 1 addition & 1 deletion src/commands/music/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export async function execute(interaction: CommandInteraction) {

queue.removeTrack(index)

await interaction.reply({ embeds: [successEmbed(interaction, `La musique ${name} a été supprimée de la file d'attente.`)], ephemeral: true })
await interaction.reply({ embeds: [successEmbed(interaction, `La musique ${name} a été supprimée de la file d'attente.`)] })
}
2 changes: 1 addition & 1 deletion src/commands/music/resume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export async function execute(interaction: CommandInteraction) {

if (!success) return await interaction.reply({ embeds: [errorEmbed(interaction, new Error("Impossible de mettre en pause la musique."))], ephemeral: true })

await interaction.reply({ embeds: [successEmbed(interaction, "Musique mise en pause")], ephemeral: true })
await interaction.reply({ embeds: [successEmbed(interaction, "Musique mise en pause")] })
}
2 changes: 1 addition & 1 deletion src/commands/music/skip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ async function skip(interaction:CommandInteraction|ButtonInteraction) {

await queue.node.skip()

await interaction.reply({ embeds: [successEmbed(interaction, "Musique suivante")], ephemeral: true })
await interaction.reply({ embeds: [successEmbed(interaction, "Musique suivante")] })
}
2 changes: 1 addition & 1 deletion src/commands/music/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export async function execute(interaction: CommandInteraction) {

queue.delete()

await interaction.reply({ embeds: [successEmbed(interaction, "La musique a été arrêtée.")], ephemeral: true })
await interaction.reply({ embeds: [successEmbed(interaction, "La musique a été arrêtée.")] })
}

0 comments on commit 7c3d6d9

Please sign in to comment.