private void Client_OnChatCommandReceived(object sender, OnChatCommandReceivedArgs e) { var chatEvent = new TwitchChatEvent(TwitchChatEventType.CommandRecieved, e.Command.CommandText); chatEvent.Username = e.Command.ChatMessage.Username; OnChatEvent?.Invoke(chatEvent); }
private void Client_OnUserJoined(object sender, OnUserJoinedArgs e) { var chatEvent = new TwitchChatEvent(TwitchChatEventType.UserJoined); chatEvent.Username = e.Username; chatEvent.Channel = e.Channel; OnChatEvent?.Invoke(chatEvent); }