/// <summary> /// Creates new instances of the secrets, using the <see cref="DiscordRPC.Secrets"/> as the base. /// </summary> /// <param name="secrets">The base to use the values from</param> public DiscordSecrets(DiscordRPC.Secrets secrets) { this.joinSecret = secrets.JoinSecret; this.spectateSecret = secrets.SpectateSecret; }
/// <summary> /// Sets the Rich Presence's secrets. See also <seealso cref="Secrets"/>. /// </summary> /// <param name="secrets">The secrets used for Join / Spectate.</param> /// <returns>The modified Rich Presence.</returns> public RichPresence WithSecrets(Secrets secrets) { Secrets = secrets; return(this); }