resolveDispatchSerializer

event nametarget
"AT_MESSAGE_CREATE"AtMessageCreate
"C2C_MESSAGE_CREATE"C2CMessageCreate
"C2C_MSG_RECEIVE"C2CMsgReceive
"C2C_MSG_REJECT"C2CMsgReject
"CHANNEL_CREATE"ChannelCreate
"CHANNEL_DELETE"ChannelDelete
"CHANNEL_UPDATE"ChannelUpdate
"DIRECT_MESSAGE_CREATE"DirectMessageCreate
"FORUM_POST_CREATE"ForumPostCreate
"FORUM_POST_DELETE"ForumPostDelete
"FORUM_PUBLISH_AUDIT_RESULT"ForumPublishAuditResult
"FORUM_REPLY_CREATE"ForumReplyCreate
"FORUM_REPLY_DELETE"ForumReplyDelete
"FORUM_THREAD_CREATE"ForumThreadCreate
"FORUM_THREAD_DELETE"ForumThreadDelete
"FORUM_THREAD_UPDATE"ForumThreadUpdate
"FRIEND_ADD"FriendAdd
"FRIEND_DEL"FriendDel
"GROUP_ADD_ROBOT"GroupAddRobot
"GROUP_AT_MESSAGE_CREATE"GroupAtMessageCreate
"GROUP_DEL_ROBOT"GroupDelRobot
"GROUP_MSG_RECEIVE"GroupMsgReceive
"GROUP_MSG_REJECT"GroupMsgReject
"GUILD_CREATE"GuildCreate
"GUILD_DELETE"GuildDelete
"GUILD_MEMBER_ADD"GuildMemberAdd
"GUILD_MEMBER_REMOVE"GuildMemberRemove
"GUILD_MEMBER_UPDATE"GuildMemberUpdate
"GUILD_UPDATE"GuildUpdate
"MESSAGE_AUDIT_PASS"MessageAuditPass
"MESSAGE_AUDIT_REJECT"MessageAuditReject
"MESSAGE_CREATE"MessageCreate
"MESSAGE_DELETE"MessageDelete
"OPEN_FORUM_POST_CREATE"OpenForumPostCreate
"OPEN_FORUM_POST_DELETE"OpenForumPostDelete
"OPEN_FORUM_REPLY_CREATE"OpenForumReplyCreate
"OPEN_FORUM_REPLY_DELETE"OpenForumReplyDelete
"OPEN_FORUM_THREAD_CREATE"OpenForumThreadCreate
"OPEN_FORUM_THREAD_DELETE"OpenForumThreadDelete
"OPEN_FORUM_THREAD_UPDATE"OpenForumThreadUpdate
"PUBLIC_MESSAGE_DELETE"PublicMessageDeleteCreate
"READY"Ready
"RESUMED"Resumed

Since

4.1.0


fun resolveDispatchSerializer(json: JsonObject, allowNameMissing: Boolean = false): KSerializer<out Signal.Dispatch>?(source)

解析 json 并寻找匹配的 KSerializerSignal.Dispatch>, 如果找不到则得到 null

See also