You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/net/lz1998/mirai/utils/EventConverter.kt
+9-9
Original file line number
Diff line number
Diff line change
@@ -211,15 +211,15 @@ fun MessageRecallEvent.FriendRecall.toProtoMessage(): BFriendRecallNoticeEvent {
211
211
.build()
212
212
}
213
213
214
-
fun BGroupMessageEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.GroupMessageEvent).setGroupMessageEvent(this).build()
215
-
fun BPrivateMessageEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.PrivateMessageEvent).setPrivateMessageEvent(this).build()
216
-
fun BGroupIncreaseNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.GroupIncreaseNoticeEvent).setGroupIncreaseNoticeEvent(this).build()
217
-
fun BGroupDecreaseNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.GroupDecreaseNoticeEvent).setGroupDecreaseNoticeEvent(this).build()
218
-
fun BGroupRequestEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.GroupRequestEvent).setGroupRequestEvent(this).build()
219
-
fun BFriendRequestEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.FriendRequestEvent).setFriendRequestEvent(this).build()
220
-
fun BFriendAddNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.FriendAddNoticeEvent).setFriendAddNoticeEvent(this).build()
221
-
fun BGroupRecallNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.GroupRecallNoticeEvent).setGroupRecallNoticeEvent(this).build()
222
-
fun BFriendRecallNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.FriendRecallNoticeEvent).setFriendRecallNoticeEvent(this).build()
214
+
fun BGroupMessageEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TGroupMessageEvent).setGroupMessageEvent(this).build()
215
+
fun BPrivateMessageEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TPrivateMessageEvent).setPrivateMessageEvent(this).build()
216
+
fun BGroupIncreaseNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TGroupIncreaseNoticeEvent).setGroupIncreaseNoticeEvent(this).build()
217
+
fun BGroupDecreaseNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TGroupDecreaseNoticeEvent).setGroupDecreaseNoticeEvent(this).build()
218
+
fun BGroupRequestEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TGroupRequestEvent).setGroupRequestEvent(this).build()
219
+
fun BFriendRequestEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TFriendRequestEvent).setFriendRequestEvent(this).build()
220
+
fun BFriendAddNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TFriendAddNoticeEvent).setFriendAddNoticeEvent(this).build()
221
+
fun BGroupRecallNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TGroupRecallNoticeEvent).setGroupRecallNoticeEvent(this).build()
222
+
fun BFriendRecallNoticeEvent.toProtoFrame(botId:Long): BFrame=BFrame.newBuilder().setBotId(botId).setFrameType(BFrameType.TFriendRecallNoticeEvent).setFriendRecallNoticeEvent(this).build()
0 commit comments