Class: Discordrb::Events::IntegrationEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/discordrb/events/integrations.rb

Overview

Generic superclass for integration events.

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#integrationIntegration (readonly)

Returns the integration associated with the event.

Returns:

  • (Integration)

    the integration associated with the event.



13
14
15
# File 'lib/discordrb/events/integrations.rb', line 13

def integration
  @integration
end

#serverServer (readonly)

Returns the server associated with the event.

Returns:

  • (Server)

    the server associated with the event.



10
11
12
# File 'lib/discordrb/events/integrations.rb', line 10

def server
  @server
end