Exemple #1
0
 internal DiscordPresence(DiscordPresence other)
 {
     this.Discord        = other.Discord;
     this.Activity       = other.Activity;
     this.RawActivity    = other.RawActivity;
     this.InternalStatus = other.InternalStatus;
     this.InternalUser   = new TransportUser(other.InternalUser);
 }
Exemple #2
0
 internal DiscordPresence(DiscordPresence other)
 {
     this.Discord            = other.Discord;
     this.Activity           = other.Activity;
     this.RawActivity        = other.RawActivity;
     this.InternalActivities = (DiscordActivity[])other.InternalActivities?.Clone();
     this.RawActivities      = (TransportActivity[])other.RawActivities?.Clone();
     this.Status             = other.Status;
     this.InternalUser       = new TransportUser(other.InternalUser);
 }
 internal DiscordPresence(DiscordPresence other)
 {
     this.Discord = other.Discord;
     if (other.Activity != null)
     {
         this.Activity = new DiscordActivity(other.Activity);
     }
     if (other.Activity != null)
     {
         this.RawActivity = new TransportActivity(this.Activity);
     }
     this._internalActivities = (DiscordActivity[])other._internalActivities?.Clone();
     this.RawActivities       = (TransportActivity[])other.RawActivities?.Clone();
     this.Status       = other.Status;
     this.InternalUser = new TransportUser(other.InternalUser);
 }