From 6f8c8ad43df979ae16bd7fa876f1ff11b809ee4a Mon Sep 17 00:00:00 2001 From: ryoii Date: Thu, 5 Oct 2023 22:43:10 +0800 Subject: [PATCH] Remove `GroupEntranceAnnouncementChangeEvent` --- docs/api/EventType.md | 45 ------------------- .../api/http/adapter/internal/dto/event.kt | 10 ----- 2 files changed, 55 deletions(-) diff --git a/docs/api/EventType.md b/docs/api/EventType.md index a2c0008d..0d769236 100644 --- a/docs/api/EventType.md +++ b/docs/api/EventType.md @@ -499,51 +499,6 @@ -### 某群入群公告改变 - -```json5 -{ - "type": "GroupEntranceAnnouncementChangeEvent", - "origin": "abc", - "current": "cba", - "group": { - "id": 123456789, - "name": "Miral Technology", - "permission": "MEMBER" - }, - "operator": { - "id": 123456789, - "memberName": "我是管理员", - "permission": "ADMINISTRATOR", - "specialTitle":"群头衔", - "joinTimestamp":12345678, - "lastSpeakTimestamp":8765432, - "muteTimeRemaining":0, - "group": { - "id": 123456789, - "name": "Miral Technology", - "permission": "MEMBER" - } - } -} -``` - -| 名字 | 类型 | 说明 | -| ------------------- | ------- | --------------------------------------------- | -| origin | String | 原公告 | -| current | String | 新公告 | -| group | Object | 公告改变的群信息 | -| group.id | Long | 群号 | -| group.name | String | 群名 | -| group.permission | String | Bot在群中的权限,OWNER、ADMINISTRATOR或MEMBER | -| operator | Object? | 操作的管理员或群主信息,当null时为Bot操作 | -| operator.id | Long | 操作者的QQ号 | -| operator.memberName | String | 操作者的群名片 | -| operator.permission | String | 操作者在群中的权限,OWNER或ADMINISTRATOR | -| operator.group | Object | 同group | - - - ### 全员禁言 ```json5 diff --git a/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/adapter/internal/dto/event.kt b/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/adapter/internal/dto/event.kt index bd35dc64..6a3a2622 100644 --- a/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/adapter/internal/dto/event.kt +++ b/mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/adapter/internal/dto/event.kt @@ -12,7 +12,6 @@ package net.mamoe.mirai.api.http.adapter.internal.dto import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import net.mamoe.mirai.contact.MemberPermission -import net.mamoe.mirai.event.events.* @Serializable internal sealed class BotEventDTO : EventDTO() @@ -122,15 +121,6 @@ internal data class GroupNameChangeEventDTO( val operator: MemberDTO? ) : BotEventDTO() -@Serializable -@SerialName("GroupEntranceAnnouncementChangeEvent") -internal data class GroupEntranceAnnouncementChangeEventDTO( - val origin: String, - val current: String, - val group: GroupDTO, - val operator: MemberDTO? -) : BotEventDTO() - @Serializable @SerialName("GroupMuteAllEvent") internal data class GroupMuteAllEventDTO(