Table of Contents

Method MaskedUrl

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

MaskedUrl(string, Uri, string)

Creates a masked link. This link will display as specified text, and alternatively provided alt text. This can only be used in embeds.

public static string MaskedUrl(string text, Uri url, string alt_text = "")

Parameters

text string

Text to display the link as.

url Uri

Url that the link will lead to.

alt_text string

Alt text to display on hover.

Returns

string

Formatted url.