Skip to content

Commit

Permalink
Remove GroupEntranceAnnouncementChangeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoii committed Oct 5, 2023
1 parent 7404713 commit 6f8c8ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
45 changes: 0 additions & 45 deletions docs/api/EventType.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 6f8c8ad

Please sign in to comment.