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
stringText to display the link as.
url
UriUrl that the link will lead to.
alt_text
stringAlt text to display on hover.
Returns
- string
Formatted url.