commit cc672c163b783891389cfc25c68be4086eaaddc2
parent ca5813d12cd739e9836426829d8da3943287ac1d
Author: night0721 <[email protected]>
Date: Thu, 3 Mar 2022 02:37:05 +0800
debug
Diffstat:
4 files changed, 20 insertions(+), 16 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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