MemberJoinRequestEvent

data class MemberJoinRequestEvent @MiraiInternalApi constructor(    val bot: Bot,     val eventId: Long,     val message: String,     val fromId: Long,     val groupId: Long,     val groupName: String,     val fromNick: String,     val invitorId: Long? = null) : AbstractEvent, BotEvent, Packet, BaseGroupMemberInfoChangeEvent

一个账号请求加入群事件, Bot 在此群中是管理员或群主.

Constructors

Link copied to clipboard
fun MemberJoinRequestEvent(    bot: Bot,     eventId: Long,     message: String,     fromId: Long,     groupId: Long,     groupName: String,     fromNick: String,     invitorId: Long? = null)

Functions

Link copied to clipboard
suspend fun accept()

同意这个请求

Link copied to clipboard
fun cancel()
Link copied to clipboard
suspend fun ignore(blackList: Boolean = false)

忽略这个请求.

Link copied to clipboard
abstract fun intercept()

拦截这个事件

Link copied to clipboard
suspend fun reject(blackList: Boolean = false, message: String = "")

拒绝这个请求

Properties

Link copied to clipboard
var _intercepted: Boolean = false
Link copied to clipboard
open override val bot: Bot
Link copied to clipboard
val broadCastLock: Mutex

限制一个事件实例不能并行广播. (适用于 object 广播的情况)

Link copied to clipboard
val eventId: Long

事件唯一识别号

Link copied to clipboard
val fromId: Long

申请入群的账号的 id

Link copied to clipboard
val fromNick: String

申请人昵称

Link copied to clipboard
val group: Group?

相关群. 若在事件发生后机器人退出这个群, groupnull.

Link copied to clipboard
open override val groupId: Long
Link copied to clipboard
val groupName: String
Link copied to clipboard
val invitor: NormalMember?

邀请入群的成员. 若在事件发生时机器人或该成员退群, invitornull.

Link copied to clipboard
val invitorId: Long? = null

邀请人 id(如果是邀请入群)

Link copied to clipboard
val isCancelled: Boolean
Link copied to clipboard
abstract val isIntercepted: Boolean

事件是否已被拦截.

Link copied to clipboard
val message: String

入群申请消息

Extensions

Link copied to clipboard