Reply to user with decorated text based on HTML

Hi, I'm looking for something like the opposite of discord-html-transcripts. I'm writing a bot that allows looking up terms from a wiki site. The description of a term often contains primitive text styling, like color (inline CSS) or <b> / <strong> etc. What should I look into? Embeds? Write my own primitive converter that only does the normal Discord markdown formatting?
4 Replies
d.js toolkit
d.js toolkit2w ago
souji
souji2w ago
discord does not offer you a display surface for abitrary html you'll have to boil your HTML down to discord supported markdown text colors are a prime example for something that cannot be translated there are npm packages like https://www.npmjs.com/package/turndown that achieve this
functiondj
functiondjOP2w ago
thank you very much! that's exactly what i was looking for :)
d.js toolkit
d.js toolkit2w ago
The thread owner has marked this issue as solved.

Did you find this page helpful?