UNPKG

seyfert

Version:

The most advanced framework for discord bots

36 lines (35 loc) 1.35 kB
import { type APIFileUploadComponent } from '../types'; import { BaseComponentBuilder } from './Base'; export declare class FileUpload extends BaseComponentBuilder<APIFileUploadComponent> { constructor(data?: Partial<APIFileUploadComponent>); /** * Sets the ID for the file upload. * @param id - The ID for the file upload. * @returns The current FileUpload instance. */ setId(id: number): this; /** * Sets the custom ID for the file upload. * @param customId - The custom ID for the file upload. * @returns The current FileUpload instance. */ setCustomId(customId: string): this; /** * Sets the minimum number of items that must be uploaded. * @param minValues - The minimum number of items that must be uploaded. * @returns The current FileUpload instance. */ setMinValues(minValues: number): this; /** * Sets the maximum number of items that can be uploaded. * @param maxValues - The maximum number of items that can be uploaded. * @returns The current FileUpload instance. */ setMaxValues(maxValues: number): this; /** * Sets whether the file upload is required. * @param required - Whether the file upload is required. * @returns The current FileUpload instance. */ setRequired(required: boolean): this; }