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