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`);