diff --git a/command/CODM/stats.js b/command/CODM/stats.js index b506d42..c253158 100644 --- a/command/CODM/stats.js +++ b/command/CODM/stats.js @@ -1,6 +1,6 @@ const common = require("../../util/functions/common"); const data = require("../../util/Data/data.json"); -const Discord = require("discord.js"); +const { MessageEmbed } = require("discord.js"); let currGun, currStats, @@ -54,10 +54,10 @@ module.exports = { run: async (client, interaction, args) => { recoilAvailable = false; hasError = false; - console.log(args); + console.log(args, args.join("+")); const repEmb = statsHandler(args.join(" ").replace("\n", " ")); if (hasError) { - interaction.followUp({ embeds: [repEmb] }); + interaction.followUp({ embeds: [new MessageEmbed(repEmb)] }); } if (recoilAvailable) { repEmb.fields.push({ @@ -68,7 +68,7 @@ module.exports = { const recoilImageLink = await chart.getShortUrl(); repEmb.image = { url: recoilImageLink }; } - interaction.followUp({ embeds: [repEmb] }); + interaction.followUp({ embeds: [new MessageEmbed(repEmb)] }); }, }; diff --git a/scorestreak.js b/scorestreak.js index 3c8983c..89c550a 100644 --- a/scorestreak.js +++ b/scorestreak.js @@ -166,7 +166,7 @@ module.exports = { inline: false, } ) - .setThumbnail(`${d.preview}`) + .setThumbnail(d.preview) .setFooter(`Made by ${client.author}`, client.user.displayAvatarURL()) .setColor( d.type == "lethal"