Class: Discordrb::Light::Connection
- Inherits:
-
Object
- Object
- Discordrb::Light::Connection
- 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
-
#id ⇒ String
readonly
The ID of the connected account.
-
#integrations ⇒ Array<Integration>
readonly
The integrations associated with this connection.
-
#name ⇒ String
readonly
The name of the connected account.
-
#revoked ⇒ true, false
(also: #revoked?)
readonly
Whether this connection is revoked.
-
#type ⇒ Symbol
readonly
What type of connection this is (either :twitch or :youtube currently).
Instance Attribute Details
#id ⇒ String (readonly)
Returns the ID of the connected account.
20 21 22 |
# File 'lib/discordrb/light/integrations.rb', line 20 def id @id end |
#integrations ⇒ Array<Integration> (readonly)
Returns the integrations associated with this connection.
23 24 25 |
# File 'lib/discordrb/light/integrations.rb', line 23 def integrations @integrations end |
#name ⇒ String (readonly)
Returns the name of the connected account.
17 18 19 |
# File 'lib/discordrb/light/integrations.rb', line 17 def name @name end |
#revoked ⇒ true, false (readonly) Also known as: revoked?
Returns whether this connection is revoked.
13 14 15 |
# File 'lib/discordrb/light/integrations.rb', line 13 def revoked @revoked end |
#type ⇒ Symbol (readonly)
Returns 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 |