Class: Rubirai::BotInvitedToGroupEvent

Inherits:
RequestEvent show all
Defined in:
lib/rubirai/event_resp.rb,
lib/rubirai/events/request_events.rb

Instance Attribute Summary collapse

Attributes inherited from RequestEvent

#event_id, #from_id, #group_id, #message, #nick

Attributes inherited from Event

#bot, #raw

Instance Method Summary collapse

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_nameString (readonly)

Returns the group name.

Returns:

  • (String)

    the group name



33
# File 'lib/rubirai/events/request_events.rb', line 33

set_event :BotInvitedJoinGroupRequestEvent, :group_name

Instance Method Details

#respond(operation, message = '') ⇒ void

This method returns an undefined value.

Respond to the group invitation.

Parameters:



125
126
127
# File 'lib/rubirai/event_resp.rb', line 125

def respond(operation, message = '')
  @bot.respond_to_group_invite @event_id, @from_id, @group_id, operation, message
end