This commit is contained in:
parent
94b57e618a
commit
4861e8dd3d
@ -75,16 +75,14 @@ module.exports = {
|
||||
const embed = new EmbedBuilder().setColor("#00b0f4");
|
||||
|
||||
|
||||
let fieldCount = 0;
|
||||
// Adiciona cada usuário como um field no embed
|
||||
rows.forEach(row => {
|
||||
|
||||
embed.addFields({
|
||||
name: ``, // ou algum outro título
|
||||
value: `> **${row.nig}** \n > <@${row.discord_id}> \n **Meta Semanal:** \n * *Carvao:* \`1000\`\n * *Enxofre:* \`1000\`\n**Cargo:** \`${row.nomedocargo}\`\n `,
|
||||
inline: fieldCount >= 3 // false para os 3 primeiros, depois true
|
||||
inline: true
|
||||
});
|
||||
fieldCount++;
|
||||
});
|
||||
|
||||
await interaction.editReply({ embeds: [embed] });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user