mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types(FileUploadModalData): Correct fields (#11210)
* types(FileUploadModalData): update fields * docs: update more fields
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
3
packages/discord.js/typings/index.d.ts
vendored
3
packages/discord.js/typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user