types(FileUploadModalData): Correct fields (#11210)

* types(FileUploadModalData): update fields

* docs: update more fields
This commit is contained in:
Jiralite
2025-10-25 23:57:00 +01:00
committed by GitHub
parent 8066821faa
commit 56662ebad7
2 changed files with 8 additions and 7 deletions

View File

@@ -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<string, GuildMember|APIGuildMember>} [members] The resolved members
* @property {Collection<string, User|APIUser>} [users] The resolved users
* @property {Collection<string, Role|APIRole>} [roles] The resolved roles
* @property {Collection<string, BaseChannel|APIChannel>} [channels] The resolved channels
* @property {Collection<Snowflake, GuildMember|APIGuildMember>} [members] The resolved members
* @property {Collection<Snowflake, User|APIUser>} [users] The resolved users
* @property {Collection<Snowflake, Role|APIRole>} [roles] The resolved roles
* @property {Collection<Snowflake, BaseChannel|APIChannel>} [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<string, Attachment>} [attachments] The resolved attachments
* @property {Snowflake[]} values The values of the file upload
* @property {Collection<Snowflake, Attachment>} [attachments] The resolved attachments
*/
/**

View File

@@ -2582,8 +2582,9 @@ export interface SelectMenuModalData<Cached extends CacheType = CacheType>
}
export interface FileUploadModalData extends BaseModalData<ComponentType.FileUpload> {
attachments: ReadonlyCollection<Snowflake, Attachment>;
customId: string;
files: readonly Attachment[];
values: readonly Snowflake[];
}
export type ModalData = FileUploadModalData | SelectMenuModalData | TextInputModalData;