#I have something like this and I want to have 2x something like this
1 messages · Page 1 of 1 (latest)
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
yes
Just copy paste, and change the filter to whatever you want
Remove the 1
const commands = client.commands.filter(x => x.showHelp !== false)
const commands = client.commands.filter(x => x.showAdmin !== false)