Table of Contents

Class RestConnection

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll
public class RestConnection : IConnection
Inheritance
RestConnection
Implements
Inherited Members

Properties

FriendSync

Gets whether friend sync is enabled for this connection.

public bool FriendSync { get; }

Property Value

bool

Id

Gets the ID of the connection account.

public string Id { get; }

Property Value

string

A string representing the unique identifier value of this connection.

Integrations

Gets a IReadOnlyCollection<T> of integration partials.

public IReadOnlyCollection<IIntegration> Integrations { get; }

Property Value

IReadOnlyCollection<IIntegration>

IsRevoked

Gets whether the connection is revoked.

public bool? IsRevoked { get; }

Property Value

bool?

A value which if true indicates that this connection has been revoked, otherwise false.

Name

Gets the username of the connection account.

public string Name { get; }

Property Value

string

A string containing the name of this connection.

ShowActivity

Gets whether activities related to this connection will be shown in presence updates.

public bool ShowActivity { get; }

Property Value

bool

Type

Gets the service of the connection (twitch, youtube).

public string Type { get; }

Property Value

string

A string containing the name of this type of connection.

Verified

Gets whether the connection is verified.

public bool Verified { get; }

Property Value

bool

Visibility

Visibility of this connection.

public ConnectionVisibility Visibility { get; }

Property Value

ConnectionVisibility

Methods

ToString()

Gets the name of the connection.

public override string ToString()

Returns

string

Name of the connection.