chore(eventsub): add operator== and indicator for shared chat (#5974)

This commit is contained in:
nerix
2025-02-22 20:55:20 +01:00
committed by GitHub
parent f540be3446
commit 7fee3f7e37
7 changed files with 98 additions and 10 deletions
@@ -389,11 +389,11 @@ struct Event {
String broadcasterUserName;
/// For Shared Chat events, the user ID (e.g. 117166826) of the user who's channel the event took place in
std::optional<std::string> sourceBroadcasterUserID;
std::optional<String> sourceBroadcasterUserID;
/// For Shared Chat events, the user Login (e.g. testaccount_420) of the user who's channel the event took place in
std::optional<std::string> sourceBroadcasterUserLogin;
std::optional<String> sourceBroadcasterUserLogin;
/// For Shared Chat events, the user Name (e.g. 테스트계정420) of the user who's channel the event took place in
std::optional<std::string> sourceBroadcasterUserName;
std::optional<String> sourceBroadcasterUserName;
/// User ID (e.g. 117166826) of the user who took the action
String moderatorUserID;
@@ -439,6 +439,8 @@ struct Event {
SharedChatDelete, //
std::string>
action;
bool isFromSharedChat() const noexcept;
};
struct Payload {