mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
imposter help discord fix yes
This commit is contained in:
parent
6241e9a81d
commit
1dc7ee8a49
1 changed files with 13 additions and 1 deletions
|
@ -105,12 +105,24 @@ module.exports = {
|
|||
if (command.alias.toString() !== '') {
|
||||
alias = command.alias.join(', ')
|
||||
}
|
||||
|
||||
const usage = []
|
||||
if (typeof command.usage === 'string') {
|
||||
usage.push(`${prefix}${command.name} ${command.usage}`)
|
||||
} else {
|
||||
for (const value of command.usage) {
|
||||
usage.push(`${prefix}${command.name} ${value}`)
|
||||
usage.push('\n')
|
||||
}
|
||||
usage.pop()
|
||||
}
|
||||
|
||||
const Embed = new EmbedBuilder()
|
||||
.setColor(config.discord.embedsColors.normal)
|
||||
.setTitle(`${prefix + command.name} (${alias}) - ${command.description}`)
|
||||
.setDescription(`Trust level: ${command.trusted}
|
||||
Supported: ${command.discordExecute ? 'true' : 'false'}
|
||||
${prefix + command.name} ${command.usage}`
|
||||
${usage}`
|
||||
)
|
||||
channeldc.send({ embeds: [Embed] })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue