internal DiscordUri(string value) { if (value == null) { throw new ArgumentNullException(nameof(value)); } if (IsStandard(value)) { this._value = new Uri(value); this.Type = DiscordUriType.Standard; } else { this._value = value; this.Type = DiscordUriType.NonStandard; } }
internal DiscordUri(Uri value) { this._value = value ?? throw new ArgumentNullException(nameof(value)); this.Type = DiscordUriType.Standard; }