Class: Discordrb::Light::Connection

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

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#idString (readonly)

Returns the ID of the connected account.

Returns:

  • (String)

    the ID of the connected account



20
21
22
# File 'lib/discordrb/light/integrations.rb', line 20

def id
  @id
end

#integrationsArray<Integration> (readonly)

Returns the integrations associated with this connection.

Returns:

  • (Array<Integration>)

    the integrations associated with this connection



23
24
25
# File 'lib/discordrb/light/integrations.rb', line 23

def integrations
  @integrations
end

#nameString (readonly)

Returns the name of the connected account.

Returns:

  • (String)

    the name of the connected account



17
18
19
# File 'lib/discordrb/light/integrations.rb', line 17

def name
  @name
end

#revokedtrue, false (readonly) Also known as: revoked?

Returns whether this connection is revoked.

Returns:

  • (true, false)

    whether this connection is revoked



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

def revoked
  @revoked
end

#typeSymbol (readonly)

Returns what type of connection this is (either :twitch or :youtube currently).

Returns:

  • (Symbol)

    what type of connection this is (either :twitch or :youtube currently)



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

def type
  @type
end