Class: Discordrb::Components::FileUpload

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/component.rb

Overview

A surface that allows users to upload files in a modal.

Instance Attribute Summary collapse

Instance Attribute Details

#custom_idString (readonly)

Returns the developer-defined identifier for the file upload.

Returns:

  • (String)

    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

#idInteger (readonly)

Returns the numeric identifier of the file upload.

Returns:

  • (Integer)

    the numeric identifier of the file upload.



499
500
501
# File 'lib/discordrb/data/component.rb', line 499

def id
  @id
end

#valuesArray<Integer> (readonly)

Returns the IDs of the uploaded attachments.

Returns:

  • (Array<Integer>)

    the IDs of the uploaded attachments.



502
503
504
# File 'lib/discordrb/data/component.rb', line 502

def values
  @values
end