I've created an ascii table using ascii-table3 that gets posted to discord. The table gets posted no problem with no issues like in pic below, but I'm trying to integrate colors to the table, but can't seem to get that part working. As far as I know colors only work with code blocks so I'm using inlineCode from @discordjs/builders to put the ascii table inside of, but it doesn't seem to recognize the markdown language. When I try to add markdown language it breaks the table like this when doing table.addRow('```diff\n+' + position.value + 'n\n```') for a row. Adding newLines does seem problematic though with ascii-table3 so perhaps there's a better way...
So my question is how can I build a table in discord and add colors? Maybe a different library or my syntax might be off, but I don't think it is. I know that markdown syntax is sensitive to things like spaces though so maybe that is the problem... I appreciate any help!
UPDATED
for (let position of positions) {
table.addRow(
position.value,
position.value,
position.value,
position.value,
position.value,
position.value,
'+' + position.value
);
}
table.setAlign(1, AlignmentEnum.CENTER);
table.setAlign(2, AlignmentEnum.CENTER);
table.setAlign(3, AlignmentEnum.CENTER);
table.setAlign(4, AlignmentEnum.CENTER);
table.setAlign(5, AlignmentEnum.CENTER);
table.setAlign(6, AlignmentEnum.CENTER);
table.setAlign(7, AlignmentEnum.CENTER);
table.setStyle('unicode-single');
return inlineCode('```diff\n' + table.toString() + '```');
[![enter image description here][3]][3]

