Documentation ¶
Overview ¶
Package dischtml contains functions to convert Discord messages to pretty HTML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CSS string
CSS contains the CSS used to make the pages actually look good.
View Source
var HTMLPage string
HTMLPage contains the HTML that converted messages should be wrapped around for stand-alone viewing.
View Source
var HighlightCSS string
HighlightCSS contains the CSS used to make highlight.js look good.
View Source
var HighlightJS string
HighlightJS is the highlight.js code.
Functions ¶
Types ¶
type Converter ¶
type Converter struct { Guild discord.Guild Channels []discord.Channel Roles []discord.Role Users []discord.User Members []discord.Member // contains filtered or unexported fields }
Converter is a struct holding all necessary info for converting messages. It is not safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.