forked from Kloping/qqpd-bot-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsummon_message.java
29 lines (27 loc) · 1022 Bytes
/
summon_message.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import io.github.kloping.json.JsonSJC;
/**
* @author github.kloping
*/
public class summon_message {
public static final JSONObject jo = JSON.parseObject("{\n" +
" \"id\": \"112233\",\n" +
" \"channel_id\": \"123456\",\n" +
" \"guild_id\": \"xxxxxx\",\n" +
" \"content\": \"hello\",\n" +
" \"timestamp\": \"2021-05-25T15:20:34+08:00\",\n" +
" \"author\": {\n" +
" \"id\": \"xxxxxx\",\n" +
" \"username\": \"az\",\n" +
" \"bot\": false\n" +
" },\n" +
" \"member\": {\n" +
" \"roles\": [\"1\"],\n" +
" \"joined_at\": \"2021-04-12T16:34:42+08:00\"\n" +
" }\n" +
"}\n");
public static void main(String[] args) {
JsonSJC.parse(jo, "./src/main/java/io/github/kloping/qqbot/api", "Message", "io.github.kloping.qqbot.api");
}
}