Class: Discordrb::Components::TextDisplay

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

Overview

A content component representing message content.

Instance Attribute Summary collapse

Instance Attribute Details

#contentString (readonly)

Returns the content to be displayed for the text display.

Returns:

  • (String)

    the content to be displayed for the text display.



280
281
282
# File 'lib/discordrb/data/component.rb', line 280

def content
  @content
end

#idInteger (readonly)

Returns the numeric identifier of the text display.

Returns:

  • (Integer)

    the numeric identifier of the text display.



277
278
279
# File 'lib/discordrb/data/component.rb', line 277

def id
  @id
end