MemberJoinRequestEvent

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

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

Constructors

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

Functions

accept
Link copied to clipboard
suspend fun accept()

同意这个请求

cancel
Link copied to clipboard
fun cancel()
copy
Link copied to clipboard
fun copy(bot: Bot, eventId: Long, message: String, fromId: Long, groupId: Long, groupName: String, fromNick: String): MemberJoinRequestEvent
ignore
Link copied to clipboard
suspend fun ignore(blackList: Boolean = false)

忽略这个请求.

intercept
Link copied to clipboard
abstract fun intercept()

拦截这个事件

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

拒绝这个请求

Properties

bot
Link copied to clipboard
open override val bot: Bot
eventId
Link copied to clipboard
val eventId: Long

事件唯一识别号

fromId
Link copied to clipboard
val fromId: Long

申请入群的账号的 id

fromNick
Link copied to clipboard
val fromNick: String

申请人昵称

group
Link copied to clipboard
val group: Group?

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

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

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

invitorId
Link copied to clipboard
val invitorId: Long? = null

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

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

事件是否已被拦截.

message
Link copied to clipboard
val message: String

入群申请消息

Extensions

toRequestEventData
Link copied to clipboard