Skip to content

Commit

Permalink
fix: Fix application edit endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi committed Apr 29, 2024
1 parent 29a4922 commit ef632cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ Task<Result<IReadOnlyList<IApplicationRoleConnectionMetadata>>> UpdateApplicatio
/// <param name="coverImage">The new cover image.</param>
/// <param name="interactionsEndpointUrl">The new interactions endpoint URL.</param>
/// <param name="tags">The new tags.</param>
/// <param name="integrationTypes">The new integration types.</param>
/// <param name="integrationTypeConfig">The new integration types.</param>
/// <param name="ct">The cancellation token for this operation.</param>
/// <returns>The updated application.</returns>
Task<Result<IApplication>> EditCurrentApplicationAsync
Expand All @@ -424,7 +424,7 @@ Task<Result<IApplication>> EditCurrentApplicationAsync
Optional<Stream> coverImage = default,
Optional<Uri> interactionsEndpointUrl = default,
Optional<IReadOnlyList<string>> tags = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyDictionary<ApplicationIntegrationType, IApplicationIntegrationTypeConfig>> integrationTypeConfig = default,
CancellationToken ct = default
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public virtual async Task<Result<IApplicationCommand>> EditGlobalApplicationComm
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool?> dmPermission = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypesConfig = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
)
Expand Down Expand Up @@ -274,7 +274,7 @@ public virtual async Task<Result<IApplicationCommand>> EditGlobalApplicationComm
json.Write("dm_permission", dmPermission, this.JsonOptions);
json.Write("nsfw", isNsfw, this.JsonOptions);
json.Write("contexts", allowedContextTypes, this.JsonOptions);
json.Write("integration_types", allowedIntegrationTypes, this.JsonOptions);
json.Write("integration_types_config", integrationTypesConfig, this.JsonOptions);
}
)
.WithRateLimitContext(this.RateLimitCache),
Expand Down Expand Up @@ -683,7 +683,7 @@ public async Task<Result<IApplication>> EditCurrentApplicationAsync
Optional<Stream> coverImage = default,
Optional<Uri> interactionsEndpointUrl = default,
Optional<IReadOnlyList<string>> tags = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyDictionary<ApplicationIntegrationType, IApplicationIntegrationTypeConfig>> integrationTypes = default,
CancellationToken ct = default
)
{
Expand Down

0 comments on commit ef632cb

Please sign in to comment.