Class: Discordrb::Light::Integration

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/discordrb/light/integrations.rb

Overview

An integration of a connection into a particular server, for example being a member of a subscriber-only Twitch server.

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Method Summary

Methods included from IDObject

#==, #creation_time, synthesise

Instance Attribute Details

#integrated_connectionConnection (readonly)

Returns the connection integrated with the server (i.e. your connection).

Returns:

  • (Connection)

    the connection integrated with the server (i.e. your connection)



53
54
55
# File 'lib/discordrb/light/integrations.rb', line 53

def integrated_connection
  @integrated_connection
end

#serverUltraLightServer (readonly)

Returns the server associated with this integration.

Returns:



44
45
46
# File 'lib/discordrb/light/integrations.rb', line 44

def server
  @server
end

#server_connectionConnection (readonly)

Note:

The connection returned by this method will have no integrations itself, as Discord doesn’t provide that data. Also, it will always be considered not revoked.

Returns the server’s underlying connection (for a Twitch subscriber-only server, it would be the Twitch account connection of the server owner).

Returns:

  • (Connection)

    the server’s underlying connection (for a Twitch subscriber-only server, it would be the Twitch account connection of the server owner).



50
51
52
# File 'lib/discordrb/light/integrations.rb', line 50

def server_connection
  @server_connection
end