From 5a92b7f4c3a64c4d3d06fca2432f3b178415d4c5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 13 Mar 2021 14:31:54 -0500 Subject: [PATCH] Decode HTML --- commands/search/esrb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/esrb.js b/commands/search/esrb.js index 97c3a041..9981345e 100644 --- a/commands/search/esrb.js +++ b/commands/search/esrb.js @@ -2,7 +2,7 @@ const Command = require('../../structures/Command'); const { MessageEmbed } = require('discord.js'); const request = require('node-superfetch'); const path = require('path'); -const { shorten } = require('../../util/Util'); +const { decode: decodeHTML } = require('html-entities'); module.exports = class EsrbCommand extends Command { constructor(client) { @@ -38,7 +38,7 @@ module.exports = class EsrbCommand extends Command { const embed = new MessageEmbed() .attachFiles([{ attachment: ratingFile, name: 'rating.png' }]) .setColor(0x1C8CDE) - .setTitle(`${data.title} by ${data.company}`) + .setTitle(`${decodeHTML(data.title)} by ${decodeHTML(data.company)}`) .setDescription(data.descriptors || 'No Descriptors') .setAuthor('ESRB', 'https://i.imgur.com/29U6Bax.jpg', 'https://www.esrb.org/') .setThumbnail('attachment://rating.png')