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

This commit is contained in:
RogueException
2015-09-07 22:06:33 -03:00
parent a6c4468f5b
commit 3869304a31

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>