Class: Rubirai::AtMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/rubirai/messages/message.rb

Overview

The At message type

Instance Attribute Summary collapse

Attributes inherited from Message

#bot, #type

Instance Method Summary collapse

Methods inherited from Message

all_types, check_type, #to_h, to_message

Instance Attribute Details

#displayString (readonly)

Returns the displayed name (not used when sending).

Returns:

  • (String)

    the displayed name (not used when sending)



280
# File 'lib/rubirai/messages/message.rb', line 280

set_message :At, :target, :display

#targetInteger (readonly)

Returns the target group user's id.

Returns:

  • (Integer)

    the target group user's id



280
# File 'lib/rubirai/messages/message.rb', line 280

set_message :At, :target, :display

Instance Method Details

#from(**kwargs) ⇒ AtMessage

Form an Rubirai::AtMessage. The display option has no effect when sending at messages.

Options Hash (**kwargs):

  • :target (Integer)

    the target id

Returns:



280
# File 'lib/rubirai/messages/message.rb', line 280

set_message :At, :target, :display