public GroupMessageHistory GetGroupHistory(Channel group) { GroupMessageHistory msgHistory = null; Connect(); Slack.GetGroupHistory((history) => { msgHistory = history; ClientReady.Set(); }, group); ClientReady.Wait(); ClientReady.Reset(); return(msgHistory); }