chore(eventsub): add operator== and indicator for shared chat (#5974)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "twitch-eventsub-ws/payloads/channel-moderate-v2.hpp"
|
||||
|
||||
namespace chatterino::eventsub::lib::payload::channel_moderate::v2 {
|
||||
|
||||
bool Event::isFromSharedChat() const noexcept
|
||||
{
|
||||
return this->sourceBroadcasterUserID && this->sourceBroadcasterUserLogin &&
|
||||
this->sourceBroadcasterUserName &&
|
||||
*this->sourceBroadcasterUserID != this->broadcasterUserID;
|
||||
}
|
||||
} // namespace chatterino::eventsub::lib::payload::channel_moderate::v2
|
||||
Reference in New Issue
Block a user