Skip to content

Commit

Permalink
fix: Apply correct naming to integration_types
Browse files Browse the repository at this point in the history
  • Loading branch information
VelvetToroyashi committed May 11, 2024
1 parent 6f1bb43 commit e1ae761
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Task<Result<IReadOnlyList<IApplicationCommand>>> GetGlobalApplicationCommandsAsy
/// <param name="defaultMemberPermissions">The permissions required to execute the command.</param>
/// <param name="dmPermission">Whether this command is executable in DMs.</param>
/// <param name="isNsfw">Whether the command is age-restricted.</param>
/// <param name="allowedIntegrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="integrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="allowedContextTypes">The contexts in which the command is allowed to be run in.</param>
/// <param name="ct">The cancellation token for this operation.</param>
/// <returns>A creation result which may or may not have succeeded.</returns>
Expand All @@ -88,7 +88,7 @@ Task<Result<IApplicationCommand>> CreateGlobalApplicationCommandAsync
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool?> dmPermission = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
);
Expand Down Expand Up @@ -134,7 +134,7 @@ Task<Result<IApplicationCommand>> GetGlobalApplicationCommandAsync
/// <param name="defaultMemberPermissions">The permissions required to execute the command.</param>
/// <param name="dmPermission">Whether this command is executable in DMs.</param>
/// <param name="isNsfw">Whether this command is age-restricted.</param>
/// <param name="allowedIntegrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="integrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="allowedContextTypes">The contexts in which the command is allowed to be run in.</param>
/// <param name="ct">The cancellation token for this operation.</param>
/// <returns>A creation result which may or may not have succeeded.</returns>
Expand All @@ -150,7 +150,7 @@ Task<Result<IApplicationCommand>> EditGlobalApplicationCommandAsync
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool?> dmPermission = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
);
Expand Down Expand Up @@ -205,7 +205,7 @@ Task<Result<IReadOnlyList<IApplicationCommand>>> GetGuildApplicationCommandsAsyn
/// <param name="descriptionLocalizations">The localized descriptions of the command.</param>
/// <param name="defaultMemberPermissions">The permissions required to execute the command.</param>
/// <param name="isNsfw">Whether the command is age-restricted.</param>
/// <param name="allowedIntegrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="integrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="allowedContextTypes">The contexts in which the command is allowed to be run in.</param>
/// <param name="ct">The cancellation token for this operation.</param>
/// <returns>A creation result which may or may not have succeeded.</returns>
Expand All @@ -221,7 +221,7 @@ Task<Result<IApplicationCommand>> CreateGuildApplicationCommandAsync
Optional<IReadOnlyDictionary<string, string>?> descriptionLocalizations = default,
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
);
Expand Down Expand Up @@ -271,7 +271,7 @@ Task<Result<IApplicationCommand>> GetGuildApplicationCommandAsync
/// <param name="descriptionLocalizations">The localized descriptions of the command.</param>
/// <param name="defaultMemberPermissions">The permissions required to execute the command.</param>
/// <param name="isNsfw">Whether this command is age-restricted.</param>
/// <param name="allowedIntegrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="integrationTypes">The installation contexts the command can be installed to.</param>
/// <param name="allowedContextTypes">The contexts in which the command is allowed to be run in.</param>
/// <param name="ct">The cancellation token for this operation.</param>
/// <returns>A creation result which may or may not have succeeded.</returns>
Expand All @@ -290,7 +290,7 @@ Task<Result<IApplicationCommand>> EditGuildApplicationCommandAsync
Optional<IReadOnlyDictionary<string, string>?> descriptionLocalizations = default,
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public virtual async Task<Result<IApplicationCommand>> CreateGlobalApplicationCo
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool?> dmPermission = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
)
Expand Down Expand Up @@ -154,7 +154,7 @@ public virtual async Task<Result<IApplicationCommand>> CreateGlobalApplicationCo
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", integrationTypes, this.JsonOptions);
}
)
.WithRateLimitContext(this.RateLimitCache),
Expand Down 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>> integrationTypesConfig = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = 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_config", integrationTypesConfig, this.JsonOptions);
json.Write("integration_types", integrationTypes, this.JsonOptions);
}
)
.WithRateLimitContext(this.RateLimitCache),
Expand Down Expand Up @@ -387,7 +387,7 @@ public virtual async Task<Result<IApplicationCommand>> CreateGuildApplicationCom
Optional<IReadOnlyDictionary<string, string>?> descriptionLocalizations = default,
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
)
Expand Down Expand Up @@ -437,7 +437,7 @@ public virtual async Task<Result<IApplicationCommand>> CreateGuildApplicationCom
json.Write("default_member_permissions", defaultMemberPermissions, 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", integrationTypes, this.JsonOptions);
}
)
.WithRateLimitContext(this.RateLimitCache),
Expand Down Expand Up @@ -475,7 +475,7 @@ public virtual async Task<Result<IApplicationCommand>> EditGuildApplicationComma
Optional<IReadOnlyDictionary<string, string>?> descriptionLocalizations = default,
Optional<IDiscordPermissionSet?> defaultMemberPermissions = default,
Optional<bool> isNsfw = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> allowedIntegrationTypes = default,
Optional<IReadOnlyList<ApplicationIntegrationType>> integrationTypes = default,
Optional<IReadOnlyList<InteractionContextType>> allowedContextTypes = default,
CancellationToken ct = default
)
Expand Down Expand Up @@ -513,7 +513,7 @@ public virtual async Task<Result<IApplicationCommand>> EditGuildApplicationComma
json.Write("default_member_permissions", defaultMemberPermissions, 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", integrationTypes, this.JsonOptions);
}
)
.WithRateLimitContext(this.RateLimitCache),
Expand Down

0 comments on commit e1ae761

Please sign in to comment.