Exemple #1
0
        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;
            }
        }
Exemple #2
0
 internal DiscordUri(Uri value)
 {
     this._value = value ?? throw new ArgumentNullException(nameof(value));
     this.Type   = DiscordUriType.Standard;
 }