Method Colorize
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
Colorize(string, params AnsiColor[])
Colorizes text based using ANSI escape codes. Escape codes are only properly rendered in code blocks. Resets are inserted automatically.
public static string Colorize(string text, params AnsiColor[] styles)
Parameters
text
stringThe text to colorize.
styles
AnsiColor[]
Returns
- string