Class: OnyxCord::Components::FileUpload

Inherits:
Object
  • Object
show all
Defined in:
lib/onyxcord/models/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.



519
520
521
# File 'lib/onyxcord/models/component.rb', line 519

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.



513
514
515
# File 'lib/onyxcord/models/component.rb', line 513

def id
  @id
end

#valuesArray<Integer> (readonly)

Returns the IDs of the uploaded attachments.

Returns:

  • (Array<Integer>)

    the IDs of the uploaded attachments.



516
517
518
# File 'lib/onyxcord/models/component.rb', line 516

def values
  @values
end