Skip to content

Commit

Permalink
fix: Make ApplicationIntegrationType#OAuth2InstallParams Optional<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi committed May 10, 2024
1 parent 2086a42 commit 6539aaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
//

using JetBrains.Annotations;
using Remora.Rest.Core;

namespace Remora.Discord.API.Abstractions.Objects;

Expand All @@ -33,5 +34,5 @@ public interface IApplicationIntegrationTypeConfig
/// <summary>
/// Gets the OAuth2 install parameters for the integration type.
/// </summary>
public IApplicationOAuth2InstallParams OAuth2InstallParams { get; }
public Optional<IApplicationOAuth2InstallParams> OAuth2InstallParams { get; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@

using JetBrains.Annotations;
using Remora.Discord.API.Abstractions.Objects;
using Remora.Rest.Core;

namespace Remora.Discord.API.Objects;

/// <inheritdoc cref="IApplicationIntegrationTypeConfig"/>
[PublicAPI]
public record ApplicationIntegrationTypeConfig(IApplicationOAuth2InstallParams OAuth2InstallParams) : IApplicationIntegrationTypeConfig;
public record ApplicationIntegrationTypeConfig(Optional<IApplicationOAuth2InstallParams> OAuth2InstallParams)
: IApplicationIntegrationTypeConfig;

0 comments on commit 6539aaf

Please sign in to comment.