cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
群消息撤回事件 更多...
#include <GroupEvents.hpp>
Public 成员函数 | |
QQ_t | GetSender () const |
获取被撤回消息的发送者QQ 更多... | |
MessageId_t | GetMessageId () const |
获取被撤回消息的消息id 更多... | |
std::time_t | GetSendTime () const |
获取被撤回消息的发送时间 更多... | |
Group | GetGroup () 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 |
---|---|
GroupRecallEvent::AuthorId_ | 0_qq |
GroupRecallEvent::MessageId_ | 0 |
GroupRecallEvent::time_ | 0 |
GroupRecallEvent::group_ | Group{} |
GroupRecallEvent::operator_ | std::nullopt |
在文件 GroupEvents.hpp 第 284 行定义.
|
inline |
获取被撤回消息的发送者QQ
在文件 GroupEvents.hpp 第 298 行定义.
|
inline |
获取被撤回消息的消息id
在文件 GroupEvents.hpp 第 300 行定义.
|
inline |
获取被撤回消息的发送时间
在文件 GroupEvents.hpp 第 302 行定义.
|
inline |
获取群聊信息
在文件 GroupEvents.hpp 第 304 行定义.
|
inline |
获取操作员信息,为Bot时返回 std::nullopt
在文件 GroupEvents.hpp 第 306 行定义.