This commit is contained in:
parent
89170e9ee0
commit
3db957f371
@ -53,7 +53,7 @@ module.exports = {
|
||||
const [rows] = await conn.execute('SELECT discord_id, discord_username, cargo FROM users'); // Altere para a sua consulta
|
||||
|
||||
const table = new Table({
|
||||
titles: ['Level', 'Money', 'Wins'],
|
||||
titles: ['Level', 'Money', 'Wins', 'Wins'],
|
||||
titleIndexes: [0, 8, 16],
|
||||
columnIndexes: [0, 6, 14],
|
||||
start: '`',
|
||||
@ -66,7 +66,7 @@ module.exports = {
|
||||
// table.addRow(['row.discord_id', 'row.discord_username', 'row.cargo']);
|
||||
//});
|
||||
|
||||
table.addRow(['1', '2', '3']);
|
||||
table.addRow(['1', '2', '31123', '3']);
|
||||
|
||||
// Use this 'embed' when sending a message to a channel.
|
||||
const embed = new EmbedBuilder().setFields(table.toField());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user