From 3869304a31bf29c40bbfe2e37a6a57ea00bce2c8 Mon Sep 17 00:00:00 2001 From: RogueException Date: Mon, 7 Sep 2015 22:06:33 -0300 Subject: [PATCH] Connect(token) returns just Task, not Task --- src/Discord.Net/DiscordClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net/DiscordClient.cs b/src/Discord.Net/DiscordClient.cs index 70778475c..bd4ebfd10 100644 --- a/src/Discord.Net/DiscordClient.cs +++ b/src/Discord.Net/DiscordClient.cs @@ -497,14 +497,14 @@ namespace Discord //Connection /// Connects to the Discord server with the provided token. - public async Task Connect(string token) + public async Task Connect(string token) { await Disconnect(); if (_isDebugMode) RaiseOnDebugMessage(DebugMessageType.Connection, $"DataSocket is using cached token."); - return await ConnectInternal(token); + await ConnectInternal(token); } /// Connects to the Discord server with the provided email and password. /// Returns a token for future connections.