diff --git a/packages/discord.js/src/structures/ModalSubmitInteraction.js b/packages/discord.js/src/structures/ModalSubmitInteraction.js index 167932f28..9235a67c0 100644 --- a/packages/discord.js/src/structures/ModalSubmitInteraction.js +++ b/packages/discord.js/src/structures/ModalSubmitInteraction.js @@ -21,17 +21,17 @@ const getAttachment = lazy(() => require('./Attachment.js').Attachment); * @typedef {BaseModalData} SelectMenuModalData * @property {string} customId The custom id of the component * @property {string[]} values The values of the component - * @property {Collection} [members] The resolved members - * @property {Collection} [users] The resolved users - * @property {Collection} [roles] The resolved roles - * @property {Collection} [channels] The resolved channels + * @property {Collection} [members] The resolved members + * @property {Collection} [users] The resolved users + * @property {Collection} [roles] The resolved roles + * @property {Collection} [channels] The resolved channels */ /** * @typedef {BaseModalData} FileUploadModalData * @property {string} customId The custom id of the file upload - * @property {string[]} values The values of the file upload - * @property {Collection} [attachments] The resolved attachments + * @property {Snowflake[]} values The values of the file upload + * @property {Collection} [attachments] The resolved attachments */ /** diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 93b93935a..181fc0b0e 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -2582,8 +2582,9 @@ export interface SelectMenuModalData } export interface FileUploadModalData extends BaseModalData { + attachments: ReadonlyCollection; customId: string; - files: readonly Attachment[]; + values: readonly Snowflake[]; } export type ModalData = FileUploadModalData | SelectMenuModalData | TextInputModalData;