private async void loginBtn_Click(object sender, EventArgs e) { loginBtn.Enabled = false; try { var token = tokenTbox.Text.Trim().Trim('\"', '\''); await _client.LoginAsync(TokenType.User, token); var dmChannels = await _client.GetDMChannelsAsync(); LoadUsers(dmChannels); PurgeView(); SaveToken(token); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); loginBtn.Enabled = true; } }