Class: Discordrb::Components::MediaGallery

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

Overview

A grouping of media attachments in an organized gallery format.

Defined Under Namespace

Classes: Item

Instance Attribute Summary collapse

Instance Attribute Details

#idInteger (readonly)

Returns the numeric identifier of the media gallery.

Returns:

  • (Integer)

    the numeric identifier of the media gallery.



319
320
321
# File 'lib/discordrb/data/component.rb', line 319

def id
  @id
end

#itemsArray<Item> (readonly)

Returns the media items contained within the media gallery.

Returns:

  • (Array<Item>)

    the media items contained within the media gallery.



322
323
324
# File 'lib/discordrb/data/component.rb', line 322

def items
  @items
end