Class: Rubirai::FriendMessageEvent

Inherits:
MessageEvent show all
Defined in:
lib/rubirai/events/message_events.rb

Overview

Friend message event

Instance Attribute Summary collapse

Attributes inherited from MessageEvent

#message_chain

Attributes inherited from Event

#bot, #raw

Instance Method Summary collapse

Methods inherited from MessageEvent

#respond

Methods inherited from Event

parse, #parse_val_from_key, set_event, type_to_klass, valid_type?

Constructor Details

#initialize(hash, boxt = nil) ⇒ Object

Parameters:



23
# File 'lib/rubirai/events/message_events.rb', line 23

set_event :FriendMessage

Instance Attribute Details

#senderUser (readonly)

Returns the sender.

Returns:

  • (User)

    the sender



23
# File 'lib/rubirai/events/message_events.rb', line 23

set_event :FriendMessage