Class: Discordrb::Components::MediaGallery::Item
- Inherits:
-
Object
- Object
- Discordrb::Components::MediaGallery::Item
- Defined in:
- lib/discordrb/data/component.rb
Overview
A singular media attachment.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The alternative text for the gallery item's media.
-
#media ⇒ MediaItem
readonly
The unfurled media content of the gallery item.
-
#spoiler ⇒ true, false
(also: #spoiler?)
readonly
Whether or not the gallery item's media should be blurred out.
Instance Attribute Details
#description ⇒ String? (readonly)
Returns the alternative text for the gallery item's media.
342 343 344 |
# File 'lib/discordrb/data/component.rb', line 342 def description @description end |
#media ⇒ MediaItem (readonly)
Returns the unfurled media content of the gallery item.
334 335 336 |
# File 'lib/discordrb/data/component.rb', line 334 def media @media end |
#spoiler ⇒ true, false (readonly) Also known as: spoiler?
Returns whether or not the gallery item's media should be blurred out.
338 339 340 |
# File 'lib/discordrb/data/component.rb', line 338 def spoiler @spoiler end |