Table of Contents

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 string

The text to colorize.

styles AnsiColor[]

Returns

string