Browse Source

Connect(token) returns just Task, not Task<string>

tags/docs-0.9
RogueException 10 years ago
parent
commit
3869304a31
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net/DiscordClient.cs

+ 2
- 2
src/Discord.Net/DiscordClient.cs View File

@@ -497,14 +497,14 @@ namespace Discord


//Connection //Connection
/// <summary> Connects to the Discord server with the provided token. </summary> /// <summary> Connects to the Discord server with the provided token. </summary>
public async Task<string> Connect(string token)
public async Task Connect(string token)
{ {
await Disconnect(); await Disconnect();


if (_isDebugMode) if (_isDebugMode)
RaiseOnDebugMessage(DebugMessageType.Connection, $"DataSocket is using cached token."); RaiseOnDebugMessage(DebugMessageType.Connection, $"DataSocket is using cached token.");


return await ConnectInternal(token);
await ConnectInternal(token);
} }
/// <summary> Connects to the Discord server with the provided email and password. </summary> /// <summary> Connects to the Discord server with the provided email and password. </summary>
/// <returns> Returns a token for future connections. </returns> /// <returns> Returns a token for future connections. </returns>


Loading…
Cancel
Save