Table of Contents

Class Format

Namespace
NetCord
Assembly
NetCord.dll
public static class Format
Inheritance
Format
Inherited Members

Methods

Bold(ReadOnlySpan<char>)

public static string Bold(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>

Returns

string

CodeBlock(ReadOnlySpan<char>, ReadOnlySpan<char>)

public static string CodeBlock(ReadOnlySpan<char> code, ReadOnlySpan<char> formatter = default)

Parameters

code ReadOnlySpan<char>
formatter ReadOnlySpan<char>

Returns

string

Escape(string)

public static string Escape(string text)

Parameters

text string

Returns

string

EscapeUrl(ReadOnlySpan<char>)

public static string EscapeUrl(ReadOnlySpan<char> url)

Parameters

url ReadOnlySpan<char>

Returns

string

Italic(ReadOnlySpan<char>)

public static string Italic(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>

Returns

string
public static string Link(ReadOnlySpan<char> text, ReadOnlySpan<char> url)

Parameters

text ReadOnlySpan<char>
url ReadOnlySpan<char>

Returns

string

Quote(ReadOnlySpan<char>)

public static string Quote(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>

Returns

string

SmallCodeBlock(ReadOnlySpan<char>)

public static string SmallCodeBlock(ReadOnlySpan<char> code)

Parameters

code ReadOnlySpan<char>

Returns

string

Spoiler(ReadOnlySpan<char>)

public static string Spoiler(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>

Returns

string

StrikeOut(ReadOnlySpan<char>)

public static string StrikeOut(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>

Returns

string

Timestamp(DateTimeOffset, TimestampStyle?)

public static string Timestamp(DateTimeOffset dateTime, TimestampStyle? style)

Parameters

dateTime DateTimeOffset
style TimestampStyle?

Returns

string

Underline(ReadOnlySpan<char>)

public static string Underline(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>

Returns

string