class Botkit::Message

Attributes

channel_id[R]
command[R]
id[R]
options[R]
raw[R]
text[R]

Public Class Methods

new(text:, raw: {}, channel_id: nil, command: nil, options: {}, id: nil) click to toggle source
# File lib/botkit/message.rb, line 7
def initialize(text:, raw: {}, channel_id: nil, command: nil, options: {}, id: nil)
  @text = text
  @command = command
  @raw = raw
  @channel_id = channel_id
  @options = options
  @id = id
end

Public Instance Methods

command?() click to toggle source
# File lib/botkit/message.rb, line 16
def command?
  command
end