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

GroupNameChangeEvent

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

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

Constructors

<init>

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

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

Properties

group

val group: Group

isByBot

val isByBot: Boolean

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