Subscribe_channel_raid - no event received

Im using twitchio library and setup an eventsub bot which already works for follow events.
I also want to receive raid events (being raided). Subscribing basically is successfull.
Now a raid event happened but I didnt received any notifification about that. What could be the reason why i didnt get it? (the bot was running when the event happened)
The broadcaster_id is from my own channel.

 async def subscribe_channel_raid(self):
        try:
            await self.esclient.subscribe_channel_raid(
                to_broadcaster = self.node.get_parameter(
                    'broadcaster_id').get_parameter_value().string_value)
            self.node.get_logger().info('subscribe_channel_raid done')
        except Exception as e:
            self.node.get_logger().error(
                'subscribe_channel_raid failed: ' + str(e))
...
@node.bot.esbot.event()
async def eventsub_notification_raid(
    event: twitchio.Channel):
    node.get_logger().info('Received raid event')
    user = event.user()
    # do something ...

Looks like you are using a library, you’ll want to pop over to the dedicated library channel for this library on the libraries Discord found via Support | Twitch Developers

1 Like

Thanks, this helped! Issue was that I need to use as even type ChannelRaidData in the callback.

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