debug
This commit is contained in:
parent
ca5813d12c
commit
cc672c163b
4 changed files with 20 additions and 16 deletions
|
@ -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] });
|
||||
},
|
||||
|
|
|
@ -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"
|
||||
|
|
3
util/dist/handler.js
vendored
3
util/dist/handler.js
vendored
|
@ -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}`);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue