MiraiFriendRequestEvent

See also

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend override fun accept(): Boolean

同意申请。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend override fun friend(): RequestFriendInfo

申请添加的(预备)好友信息。同 requester

Link copied to clipboard
open suspend override fun inviter(): UserInfo?

无法获取邀请者,将会始终得到null。

Link copied to clipboard
open suspend override fun reject(): Boolean

拒绝申请。

abstract suspend fun reject(block: Boolean): Boolean

拒绝申请,并选择是否添加此人为黑名单。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun requester(): RequestFriendInfo

申请添加的(预备)好友信息。同 friend

Link copied to clipboard
open suspend override fun user(): RequestFriendInfo

申请添加的(预备)好友信息。同 friend

Properties

Link copied to clipboard
abstract override val bot: MiraiBot

事件中的bot对象。

Link copied to clipboard
open override val component: Component
Link copied to clipboard
open val friend: FriendInfo
Link copied to clipboard
Link copied to clipboard
abstract override val id: ID

事件的唯一标识。 Mirai事件中并不一定存在id,当原始事件中没有ID的情况下,将会生成一个随机ID。

Link copied to clipboard
open val inviter: UserInfo?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract override val message: String

验证消息文本。不为null,但是可能为空。

Link copied to clipboard
abstract override val originalEvent: NewFriendRequestEvent

原始的mirai事件对象

Link copied to clipboard
open override val requester: UserInfo
Link copied to clipboard
open override val requesterAsync: CompletableFuture<out UserInfo>
Link copied to clipboard
abstract val timestamp: Timestamp
Link copied to clipboard
abstract val type: RequestEvent.Type
Link copied to clipboard
open override val user: UserInfo
Link copied to clipboard
open override val userAsync: CompletableFuture<out UserInfo>