class Discordrb::Light::Connection

A connection of your Discord account to a particular other service (currently, Twitch and YouTube)

Attributes

id[R]

@return [String] the ID of the connected account

integrations[R]

@return [Array<Integration>] the integrations associated with this connection

name[R]

@return [String] the name of the connected account

revoked[R]

@return [true, false] whether this connection is revoked

revoked?[R]

@return [true, false] whether this connection is revoked

type[R]

@return [Symbol] what type of connection this is (either :twitch or :youtube currently)

Public Class Methods

new(data, bot) click to toggle source

@!visibility private

# File lib/discordrb/light/integrations.rb, line 26
def initialize(data, bot)
  @bot = bot

  @revoked = data['revoked']
  @type = data['type'].to_sym
  @name = data['name']
  @id = data['id']

  @integrations = data['integrations'].map { |e| Integration.new(e, self, bot) }
end