16#ifndef MIRAI_GROUP_EVENTS_HPP_
17#define MIRAI_GROUP_EVENTS_HPP_
48 bool current_ =
false;
49 std::optional<GroupMember> operator_ = std::nullopt;
61 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
82 bool current_ =
false;
95 bool isByBot()
const {
return this->ByBot_; }
115 bool origin_ =
false;
116 bool current_ =
false;
117 std::optional<GroupMember> operator_ = std::nullopt;
129 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
152 std::string current_;
153 std::optional<GroupMember> operator_ = std::nullopt;
165 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
186 std::string current_;
187 std::optional<GroupMember> operator_ = std::nullopt;
199 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
252 bool origin_ =
false;
253 bool current_ =
false;
254 std::optional<GroupMember> operator_ = std::nullopt;
266 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
290 std::time_t time_ = 0;
292 std::optional<GroupMember> operator_ = std::nullopt;
306 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
342#define DECLARE_TYPE_ENUM(event_type) \
343 template<> struct GetEventType<event_type::GetType()> \
345 using type = event_type; \
358#undef DECLARE_TYPE_ENUM
bool GetCurrent() const
现在匿名聊天是否开启
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
Group GetGroup() const
获取群聊信息
bool GetOriginal() const
原本匿名聊天是否开启
Group GetGroup() const
获取群聊信息
bool isByBot() const
操作员是否为Bot自己(无法获得具体操作员信息)
bool GetCurrent() const
现在坦白说是否开启
bool GetOriginal() const
原本坦白说是否开启
bool GetCurrent() const
现在是否允许群成员邀请好友加群
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
Group GetGroup() const
获取群聊信息
bool GetOriginal() const
原本是否允许群成员邀请好友加群
std::string GetOriginal() const
获取更改前的入群公告
std::string GetCurrent() const
获取当前入群公告
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
Group GetGroup() const
获取群聊信息
GroupMember GetSender() const
获取发送者资料
MessageChain GetMessage() const
获取消息内容
Group GetGroup() const
获取群聊信息
bool GetOriginal() const
原本是否处于全员禁言状态
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
bool GetCurrent() const
现在是否处于全员禁言
std::string GetCurrent() const
获取当前的群聊名称
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
std::string GetOriginal() const
获取更改前的群聊名称
Group GetGroup() const
获取群聊信息
std::time_t GetSendTime() const
获取被撤回消息的发送时间
QQ_t GetSender() const
获取被撤回消息的发送者QQ
MessageId_t GetMessageId() const
获取被撤回消息的消息id
Group GetGroup() const
获取群聊信息
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
MessageChain GetMessage() const
获取消息内容
Group GetGroup() const
获取目标群聊信息
Common interface for all event types
@ GroupEntranceAnnouncementChange
@ GroupAllowAnonymousChat
int64_t MessageId_t
消息id类型,用于撤回消息和引用消息
DECLARE_TYPE_ENUM(BotOfflineEventActive)