Skip to content

Commit

Permalink
fix: rename typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Dec 15, 2022
1 parent fc7cd73 commit 069021e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/discord.js/src/structures/ClientApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class ClientApplication extends Application {

/**
* Data for creating or editing an application role connection metadata.
* @typedef {Object} ApplicationRoleConnectionMetadataData
* @typedef {Object} ApplicationRoleConnectionMetadataEditOptions
* @property {string} name The name of the metadata field
* @property {?Object<Locale, string>} [nameLocalizations] The name localizations for the metadata field
* @property {string} description The description of the metadata field
Expand All @@ -171,7 +171,7 @@ class ClientApplication extends Application {

/**
* Updates this application's role connection metadata records
* @param {ApplicationRoleConnectionMetadataData[]} records The new role connection metadata records
* @param {ApplicationRoleConnectionMetadataEditOptions[]} records The new role connection metadata records
* @returns {Promise<ApplicationRoleConnectionMetadata[]>}
*/
async editRoleConnectionMetadataRecords(records) {
Expand Down
4 changes: 2 additions & 2 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ export class ClientApplication extends Application {
public fetch(): Promise<ClientApplication>;
public fetchRoleConnectionMetadataRecords(): Promise<ApplicationRoleConnectionMetadata[]>;
public editRoleConnectionMetadataRecords(
records: ApplicationRoleConnectionMetadataData[],
records: ApplicationRoleConnectionMetadataEditOptions[],
): Promise<ApplicationRoleConnectionMetadata[]>;
}

Expand Down Expand Up @@ -4464,7 +4464,7 @@ export type ApplicationCommandResolvable = ApplicationCommand | Snowflake;

export type ApplicationFlagsString = keyof typeof ApplicationFlags;

export interface ApplicationRoleConnectionMetadataData {
export interface ApplicationRoleConnectionMetadataEditOptions {
name: string;
nameLocalizations?: LocalizationMap | null;
description: string;
Expand Down

0 comments on commit 069021e

Please sign in to comment.