![]() |
NapPlana.NET 引用文档 0.3.4
Yet Another NapCat Framework SDK for .NET
|
好友请求事件。 更多...
Public 成员函数 | |
| async Task | AcceptAsync (INapBot bot, string? remark=null) |
| 同意好友请求。 | |
| async Task | RejectAsync (INapBot bot) |
| 拒绝好友请求。 | |
属性 | |
| override RequestType | RequestType = RequestType.Friend [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)。 | |
好友请求事件。
| async Task NapPlana.Core.Data.Event.Request.FriendRequestEvent.AcceptAsync | ( | INapBot | bot, |
| string? | remark = null |
||
| ) |
同意好友请求。
| bot | 机器人实例。 |
| remark | 同意后的备注名(可选)。 |
| async Task NapPlana.Core.Data.Event.Request.FriendRequestEvent.RejectAsync | ( | INapBot | bot | ) |
拒绝好友请求。
| bot | 机器人实例。 |
|
getset |
验证信息。
|
getset |
请求标识(处理请求时使用)。
|
getset |
请求类型。
|
getset |
用户ID。