Skip to main content

Class DiscordSocketRestClient

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class DiscordSocketRestClient : DiscordRestClient, IDiscordClient, IDisposable

Methods​

LoginAsync(TokenType, String, Boolean)​

View Source​
Declaration
public Task LoginAsync(TokenType tokenType, string token, bool validateToken = true)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
Discord.TokenTypetokenType
System.Stringtoken
System.BooleanvalidateToken

LogoutAsync()​

View Source​
Declaration
public Task LogoutAsync()
Returns​

System.Threading.Tasks.Task

Implements​