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}`
|
`${interaction.user.username} is set into AFK.\nStatus : ${content}`
|
||||||
)
|
)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
.setFooter({
|
||||||
|
text: `Made by ${client.author}`,
|
||||||
|
iconURL: client.user.displayAvatarURL(),
|
||||||
|
})
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setAuthor(
|
.setAuthor({
|
||||||
interaction.user.username,
|
text: interaction.user.username,
|
||||||
interaction.user.displayAvatarURL({ dynamic: true })
|
iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
|
||||||
)
|
})
|
||||||
.setURL(client.web);
|
.setURL(client.web);
|
||||||
interaction.followUp({ embeds: [embed] });
|
interaction.followUp({ embeds: [embed] });
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,10 +10,10 @@ module.exports = {
|
||||||
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setAuthor(
|
.setAuthor({
|
||||||
interaction.user.tag,
|
text: interaction.user.tag,
|
||||||
interaction.user.displayAvatarURL({ dynamic: true })
|
iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
|
||||||
)
|
})
|
||||||
.setTitle(`Support/Invite`)
|
.setTitle(`Support/Invite`)
|
||||||
.setThumbnail(
|
.setThumbnail(
|
||||||
"https://github.com/night0721/cath.js/blob/master/util/assets/images/nyx_logo_transparent.webp"
|
"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 fs = require("fs");
|
||||||
const cmds = []ownercmds = [];
|
const cmds = [];
|
||||||
|
const ownercmds = [];
|
||||||
module.exports = async client => {
|
module.exports = async client => {
|
||||||
fs.readdirSync("./events").forEach(file => {
|
fs.readdirSync("./events").forEach(file => {
|
||||||
require(`${process.cwd()}/events/${file}`);
|
require(`${process.cwd()}/events/${file}`);
|
||||||
|
|
|
@ -347,15 +347,15 @@ function attachmentsIdentifier(inpmsg, gun) {
|
||||||
) {
|
) {
|
||||||
// ask the user if he means xxx = which attachment
|
// ask the user if he means xxx = which attachment
|
||||||
errors.push(
|
errors.push(
|
||||||
`\`
|
"`" +
|
||||||
${curr
|
curr
|
||||||
.map(x => gun.aments[x].name)
|
.map(x => gun.aments[x].name)
|
||||||
.reduce((out, x, i) =>
|
.reduce((out, x, i) =>
|
||||||
[out, x].join(i === curr.length - 1 ? "` or `" : "`, `")
|
[out, x].join(i === curr.length - 1 ? "` or `" : "`, `")
|
||||||
)} +
|
) +
|
||||||
\` by \`"
|
'` by `"' +
|
||||||
${inputAttachmentsNames[i]}
|
inputAttachmentsNames[i] +
|
||||||
"\``
|
'"`'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// push the attachment to the output list
|
// push the attachment to the output list
|
||||||
|
|
Loading…
Reference in a new issue