fix(eventsub): infer AsISO8601 for chrono time point (#6027)
This commit is contained in:
@@ -24,7 +24,6 @@ namespace chatterino::eventsub::lib::messages {
|
||||
struct Metadata {
|
||||
std::string messageID;
|
||||
std::string messageType;
|
||||
/// json_tag=AsISO8601
|
||||
std::chrono::system_clock::time_point messageTimestamp;
|
||||
|
||||
std::optional<std::string> subscriptionType;
|
||||
|
||||
@@ -78,11 +78,9 @@ struct Event {
|
||||
bool isPermanent;
|
||||
|
||||
// Time point when the timeout or ban took place
|
||||
/// json_tag=AsISO8601
|
||||
std::chrono::system_clock::time_point bannedAt;
|
||||
|
||||
// Time point when the timeout will end
|
||||
/// json_tag=AsISO8601
|
||||
std::optional<std::chrono::system_clock::time_point> endsAt;
|
||||
|
||||
// Returns the duration of the timeout
|
||||
|
||||
@@ -202,7 +202,6 @@ struct Timeout {
|
||||
String userLogin;
|
||||
String userName;
|
||||
String reason;
|
||||
/// json_tag=AsISO8601
|
||||
std::chrono::system_clock::time_point expiresAt;
|
||||
};
|
||||
struct SharedChatTimeout : public Timeout {
|
||||
|
||||
Reference in New Issue
Block a user