From 412e22e7ac02758d98b53d164c446c2fe53340ea Mon Sep 17 00:00:00 2001 From: Bxio Date: Tue, 29 Apr 2025 14:46:10 +0100 Subject: [PATCH] --- src/commands/Community/lista_membros.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/commands/Community/lista_membros.js b/src/commands/Community/lista_membros.js index 6bc76b4..c09e115 100644 --- a/src/commands/Community/lista_membros.js +++ b/src/commands/Community/lista_membros.js @@ -52,7 +52,7 @@ module.exports = { const table = new Table({ titles: ['Level', 'Money', 'Wins'], titleIndexes: [0, 8, 16], - columnIndexes: [0, 6, 14], + rowIndexes: [0, 6, 14], start: '`', end: '`', padEnd: 3 @@ -62,13 +62,9 @@ module.exports = { table.addRow(['72', '$10', '25'], { override: 0 }); table.addRow(['614', '$1220', '12']); - // Use this 'embed' when sending a message to a channel. - const embed = new EmbedBuilder().setFields(table.toField()); + const embed = new MessageEmbed().addFields(table.field()) - // Use this 'tableString' in a plain text area, (embed description or a regular message) - const string = table.toString(); - - + // Use this 'embed' when sending a message to a channel. await interaction.editReply(`\n${embed}\n`);