You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

RoleConnectionsAPI

export declare class RoleConnectionsAPI
export declare class RoleConnectionsAPI

No summary provided.

constructor(rest)
Constructs a new instance of the RoleConnectionsAPI class
NameTypeOptionalDescription
restRESTNoNone
getMetadataRecords(applicationId, options?):Promise<RESTGetAPIApplicationRoleConnectionMetadataResult>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe id of the application to get role connection metadata records for
optionsPick<RequestData, 'signal'>YesThe options for fetching the role connection metadata records
updateMetadataRecords(applicationId, body, options?):Promise<RESTPutAPIApplicationRoleConnectionMetadataResult>
NameTypeOptionalDescription
applicationIdSnowflakeNoThe id of the application to update role connection metadata records for
bodyRESTPutAPIApplicationRoleConnectionMetadataJSONBodyNoThe new role connection metadata records
optionsPick<RequestData, 'signal'>YesThe options for updating the role connection metadata records