16#ifndef MIRAI_MEMBER_EVENTS_HPP_
17#define MIRAI_MEMBER_EVENTS_HPP_
56 std::string
GetCurrent()
const {
return this->current_; }
90 std::string
GetHonor()
const {
return this->honor_; }
146 std::string current_;
176 std::optional<GroupMember> inviter_ = std::nullopt;
184 std::optional<GroupMember>
GetInviter()
const {
return this->inviter_; }
211 int64_t EventId_ = 0;
214 std::string GroupName_;
215 std::string nickname_;
216 std::string message_;
217 std::optional<QQ_t> InviterId_ = std::nullopt;
236 std::optional<QQ_t>
GetInviter()
const {
return this->InviterId_; }
253template <
class Event>
280 std::optional<GroupMember> operator_ = std::nullopt;
286 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
325 std::time_t duration_ = 0;
326 std::optional<GroupMember> operator_ = std::nullopt;
334 std::chrono::seconds
GetDuration()
const {
return std::chrono::seconds(this->duration_); }
336 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
358 std::optional<GroupMember> operator_ = std::nullopt;
366 std::optional<GroupMember>
GetOperator()
const {
return this->operator_; }
373#define DECLARE_TYPE_ENUM(event_type) \
374 template<> struct GetEventType<event_type::GetType()> \
376 using type = event_type; \
390#undef DECLARE_TYPE_ENUM
Common interface for all event types
GroupMember GetMember() const
获取群成员资料
std::string GetCurrent() const
获取当前的群名片
std::string GetOriginal() const
获取更改前的群名片
GroupMember GetMember() const
获取群成员资料
HonorChangeType GetAction() const
获取群荣誉变化行为
std::string GetHonor() const
获取群荣耀名称
GroupMember GetMember() const
获取群成员资料
std::optional< GroupMember > GetInviter() const
获取邀请人信息,若无则返回 std::nullopt
std::optional< QQ_t > GetInviter() const
获取邀请人信息,若无则返回 std::nullopt
QQ_t GetUserId() const
获取申请人QQ
GID_t GetGroupId() const
获取群聊id
int64_t GetEventId() const
获取事件id,唯一标识符
std::string GetMessage() const
获取申请信息
std::string GetGroupName() const
获取群聊名称
std::string GetNickname() const
获取申请人昵称
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
GroupMember GetMember() const
获取群成员资料
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
GroupMember GetMember() const
获取群成员资料
std::chrono::seconds GetDuration() const
获取禁言时长
GroupMember GetMember() const
获取群成员资料
PERMISSION GetOriginal() const
获取更改前的权限
PERMISSION GetCurrent() const
获取当前权限
std::string GetCurrent() const
获取当前群头衔
GroupMember GetMember() const
获取群成员资料
std::string GetOriginal() const
获取更改前的群头衔
std::optional< GroupMember > GetOperator() const
获取操作员信息,为Bot时返回 std::nullopt
GroupMember GetMember() const
获取群成员资料
@ MemberSpecialTitleChange
DECLARE_TYPE_ENUM(BotOfflineEventActive)