예제 #1
0
 public static CommandData FromChatCommand(ChatCommand chatCommand)
 {
     return(new CommandData
     {
         Arguments = chatCommand.ArgumentsAsList,
         Bits = chatCommand.ChatMessage.Bits,
         Channel = chatCommand.ChatMessage.Channel,
         CommandText = chatCommand.CommandText,
         Message = chatCommand.ChatMessage.Message,
         User = ChatUser.FromChatMessage(chatCommand.ChatMessage)
     });
 }