Class: Discordrb::Components::Thumbnail
- Inherits:
-
Object
- Object
- Discordrb::Components::Thumbnail
- Defined in:
- lib/discordrb/data/component.rb
Overview
A content component that compactly displays media.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The alternative text for the thumbnail's media.
-
#id ⇒ Integer
readonly
The numeric identifier of the thumbnail.
-
#media ⇒ MediaItem
readonly
The unfurled media content of the thumbnail.
-
#spoiler ⇒ true, false
(also: #spoiler?)
readonly
Whether or not the thumbnail's media should be blurred out.
Instance Attribute Details
#description ⇒ String? (readonly)
Returns the alternative text for the thumbnail's media.
304 305 306 |
# File 'lib/discordrb/data/component.rb', line 304 def description @description end |
#id ⇒ Integer (readonly)
Returns the numeric identifier of the thumbnail.
293 294 295 |
# File 'lib/discordrb/data/component.rb', line 293 def id @id end |
#media ⇒ MediaItem (readonly)
Returns the unfurled media content of the thumbnail.
296 297 298 |
# File 'lib/discordrb/data/component.rb', line 296 def media @media end |
#spoiler ⇒ true, false (readonly) Also known as: spoiler?
Returns whether or not the thumbnail's media should be blurred out.
300 301 302 |
# File 'lib/discordrb/data/component.rb', line 300 def spoiler @spoiler end |