Class: Discordrb::Light::Integration
- Inherits:
-
Object
- Object
- Discordrb::Light::Integration
- 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
-
#integrated_connection ⇒ Connection
readonly
The connection integrated with the server (i.e. your connection).
-
#server ⇒ UltraLightServer
readonly
The server associated with this integration.
-
#server_connection ⇒ Connection
readonly
The server's underlying connection (for a Twitch subscriber-only server, it would be the Twitch account connection of the server owner).
Attributes included from IDObject
Method Summary
Methods included from IDObject
#==, #creation_time, synthesise
Instance Attribute Details
#integrated_connection ⇒ Connection (readonly)
Returns 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 |
#server ⇒ UltraLightServer (readonly)
Returns the server associated with this integration.
44 45 46 |
# File 'lib/discordrb/light/integrations.rb', line 44 def server @server end |
#server_connection ⇒ Connection (readonly)
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).
50 51 52 |
# File 'lib/discordrb/light/integrations.rb', line 50 def server_connection @server_connection end |