Class: Discordrb::Webhooks::View::TextDisplayBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/webhooks/view.rb

Overview

A text display component allows you to send message content.

Instance Method Summary collapse

Constructor Details

#initialize(content:, id: nil) ⇒ TextDisplayBuilder

Create a text display component.

Parameters:

  • content (String)

    The content of the text display component.

  • id (Integer, nil) (defaults to: nil)

    The unique 32-bit ID of the text display component.



213
214
215
216
# File 'lib/discordrb/webhooks/view.rb', line 213

def initialize(content:, id: nil)
  @id = id
  @content = content
end