fix
This commit is contained in:
parent
6e8fbe15e7
commit
c52c2880c6
2 changed files with 5 additions and 5 deletions
|
@ -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)] });
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue