From 6539aafc6b6ddd10ba99cf4000e948b52998fbf6 Mon Sep 17 00:00:00 2001 From: Velvet Toroyashi <42438262+VelvetToroyashi@users.noreply.github.com> Date: Fri, 10 May 2024 18:56:27 -0400 Subject: [PATCH] fix: Make ApplicationIntegrationType#OAuth2InstallParams `Optional` --- .../Objects/Applications/IApplicationIntegrationTypeConfig.cs | 3 ++- .../Objects/Interactions/ApplicationIntegrationTypeConfig.cs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Backend/Remora.Discord.API.Abstractions/API/Objects/Applications/IApplicationIntegrationTypeConfig.cs b/Backend/Remora.Discord.API.Abstractions/API/Objects/Applications/IApplicationIntegrationTypeConfig.cs index 66cca05a81..c912f179a2 100644 --- a/Backend/Remora.Discord.API.Abstractions/API/Objects/Applications/IApplicationIntegrationTypeConfig.cs +++ b/Backend/Remora.Discord.API.Abstractions/API/Objects/Applications/IApplicationIntegrationTypeConfig.cs @@ -21,6 +21,7 @@ // using JetBrains.Annotations; +using Remora.Rest.Core; namespace Remora.Discord.API.Abstractions.Objects; @@ -33,5 +34,5 @@ public interface IApplicationIntegrationTypeConfig /// /// Gets the OAuth2 install parameters for the integration type. /// - public IApplicationOAuth2InstallParams OAuth2InstallParams { get; } + public Optional OAuth2InstallParams { get; } } diff --git a/Backend/Remora.Discord.API/API/Objects/Interactions/ApplicationIntegrationTypeConfig.cs b/Backend/Remora.Discord.API/API/Objects/Interactions/ApplicationIntegrationTypeConfig.cs index 4be5c8f345..0bebe70f3b 100644 --- a/Backend/Remora.Discord.API/API/Objects/Interactions/ApplicationIntegrationTypeConfig.cs +++ b/Backend/Remora.Discord.API/API/Objects/Interactions/ApplicationIntegrationTypeConfig.cs @@ -22,9 +22,11 @@ using JetBrains.Annotations; using Remora.Discord.API.Abstractions.Objects; +using Remora.Rest.Core; namespace Remora.Discord.API.Objects; /// [PublicAPI] -public record ApplicationIntegrationTypeConfig(IApplicationOAuth2InstallParams OAuth2InstallParams) : IApplicationIntegrationTypeConfig; +public record ApplicationIntegrationTypeConfig(Optional OAuth2InstallParams) + : IApplicationIntegrationTypeConfig;