diff --git a/command/Utilities/afk.js b/command/Utilities/afk.js index cc61793..2d8c3b6 100644 --- a/command/Utilities/afk.js +++ b/command/Utilities/afk.js @@ -23,12 +23,15 @@ module.exports = { `${interaction.user.username} is set into AFK.\nStatus : ${content}` ) .setTimestamp() - .setFooter(`Made by ${client.author}`, client.user.displayAvatarURL()) + .setFooter({ + text: `Made by ${client.author}`, + iconURL: client.user.displayAvatarURL(), + }) .setColor(client.color) - .setAuthor( - interaction.user.username, - interaction.user.displayAvatarURL({ dynamic: true }) - ) + .setAuthor({ + text: interaction.user.username, + iconURL: interaction.user.displayAvatarURL({ dynamic: true }), + }) .setURL(client.web); interaction.followUp({ embeds: [embed] }); }, diff --git a/command/Utilities/invite.js b/command/Utilities/invite.js index b4e4013..cb20093 100644 --- a/command/Utilities/invite.js +++ b/command/Utilities/invite.js @@ -10,10 +10,10 @@ module.exports = { .setFooter(`Made by ${client.author}`, client.user.displayAvatarURL()) .setColor(client.color) .setTimestamp() - .setAuthor( - interaction.user.tag, - interaction.user.displayAvatarURL({ dynamic: true }) - ) + .setAuthor({ + text: interaction.user.tag, + iconURL: interaction.user.displayAvatarURL({ dynamic: true }), + }) .setTitle(`Support/Invite`) .setThumbnail( "https://github.com/night0721/cath.js/blob/master/util/assets/images/nyx_logo_transparent.webp" diff --git a/util/dist/handler.js b/util/dist/handler.js index 836ccf2..81a74d4 100644 --- a/util/dist/handler.js +++ b/util/dist/handler.js @@ -1,5 +1,6 @@ const fs = require("fs"); -const cmds = []ownercmds = []; +const cmds = []; +const ownercmds = []; module.exports = async client => { fs.readdirSync("./events").forEach(file => { require(`${process.cwd()}/events/${file}`); diff --git a/util/functions/common.js b/util/functions/common.js index 760d84a..47eabcf 100644 --- a/util/functions/common.js +++ b/util/functions/common.js @@ -347,15 +347,15 @@ function attachmentsIdentifier(inpmsg, gun) { ) { // ask the user if he means xxx = which attachment errors.push( - `\` - ${curr + "`" + + curr .map(x => gun.aments[x].name) .reduce((out, x, i) => [out, x].join(i === curr.length - 1 ? "` or `" : "`, `") - )} + - \` by \`" - ${inputAttachmentsNames[i]} - "\`` + ) + + '` by `"' + + inputAttachmentsNames[i] + + '"`' ); } // push the attachment to the output list