Table of Contents

Class DiscordUri

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

An URI in a Discord embed doesn't necessarily conform to the RFC 3986. If it uses the attachment:// protocol, it mustn't contain a trailing slash to be interpreted correctly as an embed attachment reference by Discord.

[JsonConverter(typeof(DiscordUri.DiscordUriJsonConverter))]
public sealed class DiscordUri
Inheritance
DiscordUri
Inherited Members

Properties

Type

The type of this URI.

Methods

ToString()

Returns a string representation of this DiscordUri.

ToUri()

Converts this DiscordUri into a canonical representation of a Uri if it can be represented as such, throwing an exception otherwise.