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.



530
531
532
# File 'lib/discordrb/data/component.rb', line 530

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.



524
525
526
# File 'lib/discordrb/data/component.rb', line 524

def id
  @id
end

#valuesArray<Integer> (readonly)

Returns the IDs of the uploaded attachments.

Returns:

  • (Array<Integer>)

    the IDs of the uploaded attachments.



527
528
529
# File 'lib/discordrb/data/component.rb', line 527

def values
  @values
end