NapPlana.NET 引用文档 0.3.4
Yet Another NapCat Framework SDK for .NET
载入中...
搜索中...
未找到
NapPlana.Core.Data.Event.Request.GroupRequestEvent类 参考

群请求事件。 更多...

类 NapPlana.Core.Data.Event.Request.GroupRequestEvent 继承关系图:
NapPlana.Core.Data.Event.Request.RequestEventBase NapPlana.Core.Data.Event.OneBotEvent

Public 成员函数

async Task AcceptAsync (INapBot bot)
 同意群请求。
 
async Task RejectAsync (INapBot bot, string? reason=null)
 拒绝群请求。
 

属性

override RequestType RequestType = RequestType.Group [get, set]
 请求类型。
 
string SubType = string.Empty [get, set]
 子类型(add=加群申请,invite=被邀请入群)。
 
long GroupId [get, set]
 群号。
 
long UserId [get, set]
 用户ID。
 
string Comment = string.Empty [get, set]
 验证信息。
 
string Flag = string.Empty [get, set]
 请求标识(处理请求时使用)。
 
- 属性 继承自 NapPlana.Core.Data.Event.Request.RequestEventBase
override EventType PostType = EventType.Request [get, set]
 事件类型。
 
virtual RequestType RequestType [get, set]
 请求类型。
 
- 属性 继承自 NapPlana.Core.Data.Event.OneBotEvent
long TimeStamp [get, set]
 事件时间戳(秒)。
 
long SelfId [get, set]
 机器人自身账号 ID。
 
virtual EventType PostType = EventType.None [get, set]
 事件类型(post_type)。
 

详细描述

群请求事件。

成员函数说明

◆ AcceptAsync()

async Task NapPlana.Core.Data.Event.Request.GroupRequestEvent.AcceptAsync ( INapBot  bot)

同意群请求。

参数
bot机器人实例。

◆ RejectAsync()

async Task NapPlana.Core.Data.Event.Request.GroupRequestEvent.RejectAsync ( INapBot  bot,
string?  reason = null 
)

拒绝群请求。

参数
bot机器人实例。
reason拒绝理由(可选)。

属性说明

◆ Comment

string NapPlana.Core.Data.Event.Request.GroupRequestEvent.Comment = string.Empty
getset

验证信息。

◆ Flag

string NapPlana.Core.Data.Event.Request.GroupRequestEvent.Flag = string.Empty
getset

请求标识(处理请求时使用)。

◆ GroupId

long NapPlana.Core.Data.Event.Request.GroupRequestEvent.GroupId
getset

群号。

◆ RequestType

override RequestType NapPlana.Core.Data.Event.Request.GroupRequestEvent.RequestType = RequestType.Group
getset

请求类型。

◆ SubType

string NapPlana.Core.Data.Event.Request.GroupRequestEvent.SubType = string.Empty
getset

子类型(add=加群申请,invite=被邀请入群)。

◆ UserId

long NapPlana.Core.Data.Event.Request.GroupRequestEvent.UserId
getset

用户ID。


该类的文档由以下文件生成: