Class: Rubirai::NewFriendRequestEvent
- Inherits:
-
RequestEvent
- Object
- Event
- RequestEvent
- Rubirai::NewFriendRequestEvent
- Defined in:
- lib/rubirai/events/request_events.rb,
lib/rubirai/event_resp.rb
Overview
New friend request event
Instance Attribute Summary
Attributes inherited from RequestEvent
#event_id, #from_id, #group_id, #message, #nick
Attributes inherited from Event
Instance Method Summary collapse
-
#respond(operation, message = '') ⇒ void
Respond to the friend request.
Methods inherited from Event
parse, #parse_val_from_key, set_event, type_to_klass, valid_type?
Instance Method Details
#respond(operation, message = '') ⇒ void
This method returns an undefined value.
Respond to the friend request.
123 124 125 |
# File 'lib/rubirai/event_resp.rb', line 123 def respond(operation, = '') @bot.respond_to_new_friend_request @event_id, @from_id, operation, @group_id, end |