Class: Rubirai::JoinGroupRequestEvent
- Inherits:
-
RequestEvent
- Object
- Event
- RequestEvent
- Rubirai::JoinGroupRequestEvent
- Defined in:
- lib/rubirai/event_resp.rb,
lib/rubirai/events/request_events.rb
Instance Attribute Summary collapse
-
#group_name ⇒ String
readonly
The group name.
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
#initialize, parse, set_event, type_to_klass, valid_type?
Constructor Details
This class inherits a constructor from Rubirai::Event
Instance Attribute Details
#group_name ⇒ String (readonly)
Returns the group name.
27 |
# File 'lib/rubirai/events/request_events.rb', line 27 set_event :MemberJoinRequestEvent, :group_name |
Instance Method Details
#respond(operation, message = '') ⇒ void
This method returns an undefined value.
Respond to the friend request.
114 115 116 |
# File 'lib/rubirai/event_resp.rb', line 114 def respond(operation, = '') @bot.respond_to_member_join @event_id, @from_id, @group_id, operation, end |