AttachmentUpload

inline fun AttachmentUpload(customId: String, uniqueId: Int = -1, required: Boolean = true, range: IntRange? = null, block: InlineAttachmentUpload.() -> Unit = {}): AttachmentUpload(source)

Component accepting files from users, see AttachmentUpload.

Parameters

customId

The custom ID of the input, see AttachmentUpload.Builder.setCustomId

uniqueId

Unique identifier of this component, see Component.withUniqueId

required

Whether the user must upload files, see AttachmentUpload.Builder.setRequired

range

Minimum and maximum amount of files a user can send, see AttachmentUpload.Builder.setRequiredRange

block

Lambda allowing further configuration