Skip to content

请求事件:加群/好友申请,可 approve 或 reject

Extends ​

Properties ​

bot ​

readonly bot: BotBase

Inherited from ​

BotEventBase.bot


comment? ​

readonly optional comment?: string


flag? ​

readonly optional flag?: string


group_id? ​

readonly optional group_id?: string


identity ​

readonly identity: EventIdentity

Inherited from ​

BotEventBase.identity


kind ​

readonly kind: "request"

事件大类:message / notice / request / meta_event / adapter

Overrides ​

BotEventBase.kind


raw? ​

readonly optional raw?: unknown

Inherited from ​

BotEventBase.raw


request_type? ​

readonly optional request_type?: string


routes ​

readonly routes: readonly string[]

该事件可匹配的路由列表,由 buildRoutes 生成

Inherited from ​

BotEventBase.routes


self_id ​

readonly self_id: string

Inherited from ​

BotEventBase.self_id


sub_type? ​

readonly optional sub_type?: string


time? ​

readonly optional time?: number

Inherited from ​

BotEventBase.time


type ​

readonly type: string

事件类型,如 message、notice.group.poke

Inherited from ​

BotEventBase.type


user_id? ​

readonly optional user_id?: string

Methods ​

approve() ​

approve(): Promise<void>

Returns ​

Promise<void>


reject() ​

reject(reason?): Promise<void>

Parameters ​

reason? ​

string

Returns ​

Promise<void>

Released under the MIT License with love.