EventSub ChannelChatNotification Subgift Information

Hi,

I have an application that is generating text-to-speech message for different kind of sub events that I receive via the EventSub ChannelChatNotification.

Regarding Subgifts I want to generate a single tts message for Subgift Bombs,

and a tts message for Subgifts that have been gifted to a specific person.

Right now the two relevant NoticeType’s for that are CommunitySubGift (for the Subgift Bombs) and SubGift (for the Specific Subgifts).

But the Problem is that a Subgift Bomb triggers not only a CommunitySubGift message, but also Subgift messages for every Sub in the Subgift Bomb.

From the data provided by the Subgift message it is not possible to identify weather it has been triggered based on a Subgift Bomb or based on a specific Subgift.

So I either can’t trigger a tts message for specific Subgifts, or a Subgift Bomb will additionally trigger for every Sub of the Subgift Bomb.

Would it be possible to add a flag to the Subgift message that tells weather this Subgift is related to a CommunitySubGift or not?

Or do I have to keep an internal state of received CommunitySubGift’s and figure out myself weather or not the Subgift is related to any recent CommunitySubGift?

Thanks for the help and Greetings,

DerMandix

For the event (for the individual gifts) check if the community_gift_id in the sub_giftis populated

if it’s blank it’s a singular/direct gift, if it has a value it’s part of a “gift bomb”/community event.

Optional. The ID of the associated community gift. Null if not associated with a community gift.

Ah thank you very much. That is exactly the parameter that I’ve looked for :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.