This commit is contained in:
Bxio 2025-04-29 14:46:10 +01:00
parent 4702691333
commit 412e22e7ac

View File

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