cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
群聊开启/关闭匿名聊天事件 更多...
#include <GroupEvents.hpp>
Public 成员函数 | |
Group | GetGroup () const |
获取群聊信息 更多... | |
bool | GetOriginal () const |
原本匿名聊天是否开启 更多... | |
bool | GetCurrent () const |
现在匿名聊天是否开启 更多... | |
std::optional< GroupMember > | GetOperator () const |
获取操作员信息,为Bot时返回 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 | |
群聊开启/关闭匿名聊天事件
Member Variable | Default Value |
---|---|
GroupAllowAnonymousChatEvent::group_ | Group{} |
GroupAllowAnonymousChatEvent::origin_ | false |
GroupAllowAnonymousChatEvent::current_ | false |
GroupAllowAnonymousChatEvent::operator_ | std::nullopt |
在文件 GroupEvents.hpp 第 42 行定义.
|
inline |
获取群聊信息
在文件 GroupEvents.hpp 第 55 行定义.
|
inline |
原本匿名聊天是否开启
在文件 GroupEvents.hpp 第 57 行定义.
|
inline |
现在匿名聊天是否开启
在文件 GroupEvents.hpp 第 59 行定义.
|
inline |
获取操作员信息,为Bot时返回 std::nullopt
在文件 GroupEvents.hpp 第 61 行定义.