Skip to content

Commit

Permalink
fix(roleConnections): Fix body type for updateMetadataRecords() (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed May 5, 2023
1 parent 506f7fc commit 166c961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/api/roleConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Routes,
type RESTGetAPIApplicationRoleConnectionMetadataResult,
type RESTPutAPIApplicationRoleConnectionMetadataResult,
type RESTPutAPIApplicationCommandPermissionsJSONBody,
type RESTPutAPIApplicationRoleConnectionMetadataJSONBody,
type Snowflake,
} from 'discord-api-types/v10';

Expand Down Expand Up @@ -35,7 +35,7 @@ export class RoleConnectionsAPI {
*/
public async updateMetadataRecords(
applicationId: Snowflake,
body: RESTPutAPIApplicationCommandPermissionsJSONBody,
body: RESTPutAPIApplicationRoleConnectionMetadataJSONBody,
{ signal }: Pick<RequestData, 'signal'> = {},
) {
return this.rest.put(Routes.applicationRoleConnectionMetadata(applicationId), {
Expand Down

0 comments on commit 166c961

Please sign in to comment.