cpp-mirai-client  v2.6.1
cpp client for mirai-api-http
Mirai::GroupRecallEvent类 参考final

群消息撤回事件 更多...

#include <GroupEvents.hpp>

类 Mirai::GroupRecallEvent 继承关系图:
[图例]
Mirai::GroupRecallEvent 的协作图:
[图例]

Public 成员函数

QQ_t GetSender () const
 获取被撤回消息的发送者QQ 更多...
 
MessageId_t GetMessageId () const
 获取被撤回消息的消息id 更多...
 
std::time_t GetSendTime () const
 获取被撤回消息的发送时间 更多...
 
Group GetGroup () const
 获取群聊信息 更多...
 
std::optional< GroupMemberGetOperator () const
 获取操作员信息,为Bot时返回 std::nullopt 更多...
 
- Public 成员函数 继承自 Mirai::IEvent< GroupRecallEvent >
 IEvent (const IEvent &)=default
 
 IEvent (IEvent &&)=default
 
IEventoperator= (const IEvent &)=default
 
IEventoperator= (IEvent &&)=default
 
MiraiClientGetMiraiClient () const
 获取接收该事件的 MiraiClient 的引用 更多...
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 Mirai::IEvent< GroupRecallEvent >
static constexpr EventTypes GetType ()
 获取事件类型 更多...
 
- Protected 成员函数 继承自 Mirai::IEvent< GroupRecallEvent >
 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.hpp284 行定义.

成员函数说明

◆ GetSender()

QQ_t Mirai::GroupRecallEvent::GetSender ( ) const
inline

获取被撤回消息的发送者QQ

在文件 GroupEvents.hpp298 行定义.

◆ GetMessageId()

MessageId_t Mirai::GroupRecallEvent::GetMessageId ( ) const
inline

获取被撤回消息的消息id

在文件 GroupEvents.hpp300 行定义.

◆ GetSendTime()

std::time_t Mirai::GroupRecallEvent::GetSendTime ( ) const
inline

获取被撤回消息的发送时间

在文件 GroupEvents.hpp302 行定义.

◆ GetGroup()

Group Mirai::GroupRecallEvent::GetGroup ( ) const
inline

获取群聊信息

在文件 GroupEvents.hpp304 行定义.

◆ GetOperator()

std::optional< GroupMember > Mirai::GroupRecallEvent::GetOperator ( ) const
inline

获取操作员信息,为Bot时返回 std::nullopt

在文件 GroupEvents.hpp306 行定义.


该类的文档由以下文件生成: