Class Format
- Namespace
- NetCord
- Assembly
- NetCord.dll
public static class Format
- Inheritance
-
Format
- Inherited Members
-
Methods
public static string Bold(ReadOnlySpan<char> text)
Parameters
text
ReadOnlySpan<char>
Returns
- string
public static string CodeBlock(ReadOnlySpan<char> code, ReadOnlySpan<char> formatter = default)
Parameters
code
ReadOnlySpan<char>
formatter
ReadOnlySpan<char>
Returns
- string
public static string Escape(string text)
Parameters
text
string
Returns
- string
public static string EscapeUrl(ReadOnlySpan<char> url)
Parameters
url
ReadOnlySpan<char>
Returns
- string
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
public static string Quote(ReadOnlySpan<char> text)
Parameters
text
ReadOnlySpan<char>
Returns
- string
public static string SmallCodeBlock(ReadOnlySpan<char> code)
Parameters
code
ReadOnlySpan<char>
Returns
- string
public static string Spoiler(ReadOnlySpan<char> text)
Parameters
text
ReadOnlySpan<char>
Returns
- string
public static string StrikeOut(ReadOnlySpan<char> text)
Parameters
text
ReadOnlySpan<char>
Returns
- string
public static string Timestamp(DateTimeOffset dateTime, TimestampStyle? style)
Parameters
dateTime
DateTimeOffset
style
TimestampStyle?
Returns
- string
public static string Underline(ReadOnlySpan<char> text)
Parameters
text
ReadOnlySpan<char>
Returns
- string