From 51affe51b1f5e9fba02a864a185e400cd9ac7da8 Mon Sep 17 00:00:00 2001 From: Thomas Moore Date: Thu, 5 Jan 2017 08:53:34 +0000 Subject: [PATCH] Fix issues with upgrading to RC --- Disbott/Program.cs | 4 ++-- Disbott/Views/UtilsModule.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Disbott/Program.cs b/Disbott/Program.cs index dce5eb2..74f824b 100644 --- a/Disbott/Program.cs +++ b/Disbott/Program.cs @@ -48,8 +48,8 @@ public async Task Start() public async Task ModifyStatus() { var username = _client.CurrentUser.Username; - await _client.SetStatus(UserStatus.Idle); - await _client.SetGame($"\'@{username} about\' for commands"); + await _client.SetStatusAsync(UserStatus.Online); + await _client.SetGameAsync($"\'@{username} about\' for commands"); } public async Task InstallCommands() diff --git a/Disbott/Views/UtilsModule.cs b/Disbott/Views/UtilsModule.cs index 4d60c19..e1f5733 100644 --- a/Disbott/Views/UtilsModule.cs +++ b/Disbott/Views/UtilsModule.cs @@ -52,7 +52,7 @@ public async Task Kill() var channel = guild.GetDefaultChannelAsync(); await channel.Result.SendMessageAsync(Resources.response_Killed); } - await Context.Client.ApiClient.LogoutAsync(); + await Context.Client.DisconnectAsync(); Process.GetCurrentProcess().Kill(); } }