Class: Discordrb::Components::FileUpload
- Inherits:
-
Object
- Object
- Discordrb::Components::FileUpload
- Defined in:
- lib/discordrb/data/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.
505 506 507 |
# File 'lib/discordrb/data/component.rb', line 505 def custom_id @custom_id end |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the file upload.
499 500 501 |
# File 'lib/discordrb/data/component.rb', line 499 def id @id end |
#values ⇒ Array<Integer> (readonly)
Returns the IDs of the uploaded attachments.
502 503 504 |
# File 'lib/discordrb/data/component.rb', line 502 def values @values end |