cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
群聊名称更改事件 更多...
#include <GroupEvents.hpp>
Public 成员函数 | |
Group | GetGroup () const |
获取群聊信息 更多... | |
std::string | GetOriginal () const |
获取更改前的群聊名称 更多... | |
std::string | 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 |
---|---|
GroupNameChangeEvent::group_ | Group{} |
GroupNameChangeEvent::origin_ | "" |
GroupNameChangeEvent::current_ | "" |
GroupNameChangeEvent::operator_ | std::nullopt |
在文件 GroupEvents.hpp 第 180 行定义.
|
inline |
获取群聊信息
在文件 GroupEvents.hpp 第 193 行定义.
|
inline |
获取更改前的群聊名称
在文件 GroupEvents.hpp 第 195 行定义.
|
inline |
获取当前的群聊名称
在文件 GroupEvents.hpp 第 197 行定义.
|
inline |
获取操作员信息,为Bot时返回 std::nullopt
在文件 GroupEvents.hpp 第 199 行定义.