data class GroupNameChangeEvent : GroupSettingChangeEvent<String>, Packet, GroupOperableEvent
群名改变. 此事件广播前修改就已经完成.
<init> |
群名改变. 此事件广播前修改就已经完成. GroupNameChangeEvent(origin: String, new: String, group: Group, operator: Member?) |
group |
val group: Group |
isByBot |
val |
new |
val new: String |
operator |
操作人. 为 null 时则是机器人操作 val operator: Member? |
origin |
val origin: String |
isByBot |
是否由 Bot 操作 val GroupOperableEvent.isByBot: Boolean |
operatorOrBot |
当操作人为 Member 时获取这个 Member, 当操作人为 Bot 时获取 Group.botAsMember val GroupOperableEvent.operatorOrBot: Member |
broadcast |
广播一个事件的唯一途径. suspend fun <E : Event> E.broadcast(): E |