mirai-core / net.mamoe.mirai.event.events / GroupEntranceAnnouncementChangeEvent

GroupEntranceAnnouncementChangeEvent

data class GroupEntranceAnnouncementChangeEvent : GroupSettingChangeEvent<String>, Packet, GroupOperableEvent

入群公告改变. 此事件广播前修改就已经完成.

Constructors

<init>

入群公告改变. 此事件广播前修改就已经完成.

GroupEntranceAnnouncementChangeEvent(origin: String, new: String, group: Group, operator: Member?)

Properties

group

val group: Group

new

val new: String

operator

操作人. 为 null 时则是机器人操作

val operator: Member?

origin

val origin: String

Extension Properties

isByBot

是否由 Bot 操作

val GroupOperableEvent.isByBot: Boolean

operatorOrBot

当操作人为 Member 时获取这个 Member, 当操作人为 Bot 时获取 Group.botAsMember

val GroupOperableEvent.operatorOrBot: Member

Extension Functions

broadcast

广播一个事件的唯一途径.

suspend fun <E : Event> E.broadcast(): E