src/commands/help/help.js
// create an embed with information about a given specific command
create an embed with information about a given specific command
create an embed with information about a given specific command
async create_embed_specific_command(msg, command) {
        const prefix = await msg.client.DB.Guild.get_prefix(msg)
        const description = []
        const name = await msg.client.mods.name.get(msg, command)
        const aliases = await msg.client.mods.aliases.get(msg, command)
        const cmd_description = await msg.client.mods.description.get(msg, command)
        const usage = await msg.client.mods.usage.get(msg, command)
        if (aliases.length) description.push(`${await gt(msg, s + "success.aliases")}\n${aliases.join(', ')}\n`)
        if (cmd_description) description.push(`${await gt(msg, s + "success.description")}\n${cmd_description}\n`)
        if (usage) description.push(`${await gt(msg, s + "success.usage")}\n\`${prefix}${name} ${usage}\`\n`)
        if (msg.client.config.help.show_cmd_modifications) description.push(`${(await msg.client.mod_man.get_mods_for_help(msg, command)).join("\n")}`)
        return await this.create_embed_help_format(msg, name, description.join("\n"))
    }
async create_embed_specific_command ( msg , command ) { const prefix = await msg . client . DB . Guild . get_prefix ( msg ) const description = [ ] const name = await msg . client . mods . name . get ( msg , command ) const aliases = await msg . client . mods . aliases . get ( msg , command ) const cmd_description = await msg . client . mods . description . get ( msg , command ) const usage = await msg . client . mods . usage . get ( msg , command ) if ( aliases . length ) description . push ( ` ${ await gt ( msg , s + "success.aliases" ) } \n ${ aliases . join ( ', ' ) } \n ` ) if ( cmd_description ) description . push ( ` ${ await gt ( msg , s + "success.description" ) } \n ${ cmd_description } \n ` ) if ( usage ) description . push ( ` ${ await gt ( msg , s + "success.usage" ) } \n \` ${ prefix } ${ name } ${ usage } \` \n ` ) if ( msg . client . config . help . show_cmd_modifications ) description . push ( ` ${ ( await msg . client . mod_man . get_mods_for_help ( msg , command ) ) . join ( "\n" ) } ` ) return await this . create_embed_help_format ( msg , name , description . join ( "\n" ) ) }
create an embed with information about a given specific command
create an embed with information about a given specific command