Interface

AttachmentBuilderOptions

Options for AttachmentBuilder.

Properties

NameTypeDescription
description?stringAlt text / description for accessibility (optional).
namestringFilename (required; prefixed with SPOILER_ when spoiler is true).
spoiler?booleanWhether this attachment should be hidden until clicked (optional).