private static EventData GetDataWithCommand(string command)
        {
            var newData = _serializedData.DeepClone();

            newData["content"] = command;
            return(EventData.FromJson(newData));
        }
Exemplo n.º 2
0
        private EventData EventDataFromContent(string content) =>
        EventData.FromJson(JToken.Parse(
                               @"{
	""event_type"": 1,
	""time_stamp"": 1603377031,
	""content"": """     + content + @""",
	""id"": 105394918,
	""user_id"": 4364057,
	""user_name"": ""Squirrelkiller"",
	""room_id"": 1,
	""room_name"": ""Sandbox"",
	""message_id"": 50752263
}"));