Skip to content

Commit

Permalink
🐛 Only escape spoilers
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Jan 5, 2021
1 parent 9029a76 commit d16fa73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/Atlanta.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ class Atlanta extends Client {
.on("searchResults", (message, query, tracks) => {
if (tracks.length > 20) tracks = tracks.slice(0, 20);
const embed = new MessageEmbed()
.setDescription(Util.escapeMarkdown(tracks.map((t, i) => `**${++i} -** ${t.title}`, {
bold: false
}).join("\n")))
.setDescription(Util.escapeSpoiler(tracks.map((t, i) => `**${++i} -** ${t.title}`).join("\n")))
.setFooter(message.translate("music/play:RESULTS_FOOTER"))
.setColor(this.config.embed.color);
message.channel.send(embed);
Expand Down

0 comments on commit d16fa73

Please sign in to comment.