Class: Rubirai::JoinGroupRequestEvent

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

Overview

Join group request event

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

parse, #parse_val_from_key, set_event, type_to_klass, valid_type?

Instance Attribute Details

#group_nameString (readonly)

Returns the group name.

Returns:

  • (String)

    the group name



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

set_event :MemberJoinRequestEvent, :group_name

Instance Method Details

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

This method returns an undefined value.

Respond to the friend request.

Parameters:



134
135
136
# File 'lib/rubirai/event_resp.rb', line 134

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