cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
Bot加入群聊事件 更多...
#include <BotEvents.hpp>
Public 成员函数 | |
Group | GetGroup () const |
获取群聊信息 更多... | |
std::optional< GroupMember > | GetInviter () const |
获取邀请人信息,若无则返回 std::nullopt 更多... | |
![]() | |
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 |
---|---|
BotJoinGroupEvent::group_ | Group{} |
BotJoinGroupEvent::inviter_ | std::nullopt |
在文件 BotEvents.hpp 第 197 行定义.
|
inline |
获取群聊信息
在文件 BotEvents.hpp 第 208 行定义.
|
inline |
获取邀请人信息,若无则返回 std::nullopt
在文件 BotEvents.hpp 第 210 行定义.