This commit is contained in:
night0721 2022-03-03 02:37:05 +08:00
parent ca5813d12c
commit cc672c163b
4 changed files with 20 additions and 16 deletions

View file

@ -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] });
},

View file

@ -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"

View file

@ -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}`);

View file

@ -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