Class: OnyxCord::Components::FileUpload
- Inherits:
-
Object
- Object
- OnyxCord::Components::FileUpload
- Defined in:
- lib/onyxcord/models/component.rb
Overview
A surface that allows users to upload files in a modal.
Instance Attribute Summary collapse
-
#custom_id ⇒ String
readonly
The developer-defined identifier for the file upload.
-
#id ⇒ Integer
readonly
The numeric identifier of the file upload.
-
#values ⇒ Array<Integer>
readonly
The IDs of the uploaded attachments.
Instance Attribute Details
#custom_id ⇒ String (readonly)
Returns the developer-defined identifier for the file upload.
519 520 521 |
# File 'lib/onyxcord/models/component.rb', line 519 def custom_id @custom_id end |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the file upload.
513 514 515 |
# File 'lib/onyxcord/models/component.rb', line 513 def id @id end |
#values ⇒ Array<Integer> (readonly)
Returns the IDs of the uploaded attachments.
516 517 518 |
# File 'lib/onyxcord/models/component.rb', line 516 def values @values end |