#I have something like this and I want to have 2x something like this

1 messages · Page 1 of 1 (latest)

shy pumice
#

Explain more

viscid jetty
#
const { MessageEmbed } = require('discord.js');

const prefix = client.config.app.px;

module.exports = {
    name: 'pomoc',
    showHelp: false,
    showAdmin: false,
    utilisation: '{prefix}help',

    execute(client, message, args) {
        const embed = new MessageEmbed(); 

        embed.setColor('#fffb00');
        embed.setAuthor('Derived Pomoc', 'https://cdn.discordapp.com/attachments/866409124371890223/922892863631654982/DERIVED_GIF.gif', ' ')

        const commands = client.commands.filter(x => x.showHelp !== false)

        embed.setDescription(`:Derived_Lista: Lista dostępnych komend: `) 
        embed.addFields(
            { name: 'Administracyjne', value: '', inline: false }, 
            { name: 'Muzyczne', value: commands.map(x => `\`${prefix}${x.name}${x.aliases[0] ? ` [${x.aliases.map(y => y).join(', ')}]\`` : '\`'}`).join(' | '), inline: false })

        embed.setTimestamp();
        embed.setFooter('Wielofunkcyjny bot utworzony przez: bajba#8644');

        message.channel.send({ embeds: [embed] });
    },
}; ```
#
{ name: 'Administracyjne', value: '', inline: false }
``` and here i want to have something like below
#

@shy pumice

#

I want all z commands, for example
command / admin showed up in the first Fields
and the c commands of the commands / user folder in the second fields

shy pumice
#

I don't understand what z and c are

#

Do you want a secondary filter?

viscid jetty
shy pumice
#

Just copy paste, and change the filter to whatever you want

viscid jetty
shy pumice
#

Remove the 1

viscid jetty
#
const commands = client.commands.filter(x => x.showHelp !== false)
const commands = client.commands.filter(x => x.showAdmin !== false)
shy pumice
#

Come on, that's not even Discord.js related...

#

You have now 2 variables with the same name