16#ifndef MIRAI_OTHER_CLIENT_EVENTS_HPP_
17#define MIRAI_OTHER_CLIENT_EVENTS_HPP_
96 std::optional<int64_t> kind_ = std::nullopt;
104 std::optional<int64_t>
GetKind()
const {
return this->kind_; }
113#define DECLARE_TYPE_ENUM(event_type) \
114 template<> struct GetEventType<event_type::GetType()> \
116 using type = event_type; \
123#undef DECLARE_TYPE_ENUM
Common interface for all event types
ClientDevice GetSender() const
获取发送客户端信息
MessageChain GetMessage() const
获取消息内容
ClientDevice GetClient() const
获取设备信息
ClientDevice GetClient() const
获取设备信息
std::optional< int64_t > GetKind() const
获取详细设备类型,无则返回 std::nullopt
DECLARE_TYPE_ENUM(BotOfflineEventActive)