Table of Contents

Method MaskedUrl

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

MaskedUrl(string, Uri, string?, bool)

Creates a masked link. This link will display as specified text, and alternatively provided alt text.

public static string MaskedUrl(this string text, Uri url, string? altText = null, bool embedless = false)

Parameters

text string

Text to display the link as.

url Uri

Url that the link will lead to.

altText string

Alt text to display on hover.

embedless bool

Whether to supress url embeds.

Returns

string

Formatted url.