cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
用户申请添加Bot好友事件 更多...
#include <NewFriendRequestEvent.hpp>
Public 成员函数 | |
int64_t | GetEventId () const |
获取事件id,唯一标识符 更多... | |
QQ_t | GetUserId () const |
获取申请人QQ 更多... | |
std::string | GetNickname () const |
获取申请人昵称 更多... | |
GID_t | GetGroupId () const |
获取申请人来自的群聊,若无则返回 0_gid 更多... | |
bool | isFromGroup () const |
申请人是否通过群聊找到Bot 更多... | |
std::string | GetMessage () const |
获取申请信息 更多... | |
![]() | |
IEvent (const IEvent &)=default | |
IEvent (IEvent &&)=default | |
IEvent & | operator= (const IEvent &)=default |
IEvent & | operator= (IEvent &&)=default |
MiraiClient & | GetMiraiClient () const |
获取接收该事件的 MiraiClient 的引用 更多... | |
额外继承的成员函数 | |
![]() | |
static constexpr EventTypes | GetType () |
获取事件类型 更多... | |
![]() | |
IEvent ()=default | |
~IEvent ()=default | |
用户申请添加Bot好友事件
Member Variable | Default Value |
---|---|
NewFriendRequestEvent::EventId_ | 0 |
NewFriendRequestEvent::FromId_ | 0_qq |
NewFriendRequestEvent::GroupId_ | 0_gid |
NewFriendRequestEvent::nickname_ | "" |
NewFriendRequestEvent::message_ | "" |
在文件 NewFriendRequestEvent.hpp 第 39 行定义.
|
inline |
获取事件id,唯一标识符
在文件 NewFriendRequestEvent.hpp 第 53 行定义.
|
inline |
获取申请人QQ
在文件 NewFriendRequestEvent.hpp 第 55 行定义.
|
inline |
获取申请人昵称
在文件 NewFriendRequestEvent.hpp 第 57 行定义.
|
inline |
获取申请人来自的群聊,若无则返回 0_gid
在文件 NewFriendRequestEvent.hpp 第 59 行定义.
|
inline |
申请人是否通过群聊找到Bot
在文件 NewFriendRequestEvent.hpp 第 61 行定义.
|
inline |
获取申请信息
在文件 NewFriendRequestEvent.hpp 第 63 行定义.