Class: Rubirai::BotInvitedToGroupEvent
- Inherits:
-
RequestEvent
- Object
- Event
- RequestEvent
- Rubirai::BotInvitedToGroupEvent
- Defined in:
- lib/rubirai/events/request_events.rb,
lib/rubirai/event_resp.rb
Overview
Event that the bot is invited to a group
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 group invitation.
Methods inherited from Event
parse, #parse_val_from_key, set_event, type_to_klass, valid_type?
Instance Attribute Details
#group_name ⇒ String (readonly)
Returns the group name.
38 |
# File 'lib/rubirai/events/request_events.rb', line 38 set_event :BotInvitedJoinGroupRequestEvent, :group_name |
Instance Method Details
#respond(operation, message = '') ⇒ void
This method returns an undefined value.
Respond to the group invitation.
145 146 147 |
# File 'lib/rubirai/event_resp.rb', line 145 def respond(operation, = '') @bot.respond_to_group_invite @event_id, @from_id, @group_id, operation, end |