types(FileUploadModalData): Correct fields (#11209)

* types(FileUploadModalData): update fields

* docs(FileUploadModalData): `Snowflake`

* types(FileUploadModalData): `Snowflake`

* docs: add more
This commit is contained in:
Jiralite
2025-10-25 23:57:39 +01:00
committed by GitHub
parent 072fbb228a
commit d317ca1053
2 changed files with 8 additions and 7 deletions

View File

@@ -20,8 +20,8 @@ const getAttachment = lazy(() => require('./Attachment'));
/** /**
* @typedef {BaseModalData} FileUploadModalData * @typedef {BaseModalData} FileUploadModalData
* @property {string} customId The custom id of the file upload * @property {string} customId The custom id of the file upload
* @property {string[]} values The values of the file upload * @property {Snowflake[]} values The values of the file upload
* @property {Collection<string, Attachment>} [attachments] The resolved attachments * @property {Collection<Snowflake, Attachment>} [attachments] The resolved attachments
*/ */
/** /**
@@ -34,10 +34,10 @@ const getAttachment = lazy(() => require('./Attachment'));
* @typedef {BaseModalData} SelectMenuModalData * @typedef {BaseModalData} SelectMenuModalData
* @property {string} customId The custom id of the field * @property {string} customId The custom id of the field
* @property {string[]} values The values of the field * @property {string[]} values The values of the field
* @property {Collection<string, GuildMember|APIGuildMember>} [members] The resolved members * @property {Collection<Snowflake, GuildMember|APIGuildMember>} [members] The resolved members
* @property {Collection<string, User|APIUser>} [users] The resolved users * @property {Collection<Snowflake, User|APIUser>} [users] The resolved users
* @property {Collection<string, Role|APIRole>} [roles] The resolved roles * @property {Collection<Snowflake, Role|APIRole>} [roles] The resolved roles
* @property {Collection<string, BaseChannel|APIChannel>} [channels] The resolved channels * @property {Collection<Snowflake, BaseChannel|APIChannel>} [channels] The resolved channels
*/ */
/** /**

View File

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