@@ -11,7 +11,7 @@ Twitch will send you an HTTP request containing information on the event. This e
1111integrating seamlessly into the twitchio Client event dispatching system.
1212
1313.. warning ::
14- This ext requires you to have a public facing ip, and to be able to receive inbound requests.
14+ This ext requires you to have a public facing ip AND domain , and to be able to receive inbound requests.
1515
1616.. note ::
1717 Twitch requires EventSub targets to have TLS/SSL enabled (https). TwitchIO does not support this, as such you should
@@ -26,7 +26,7 @@ A Quick Example
2626 import twitchio
2727 from twitchio.ext import eventsub, commands
2828 bot = commands.Bot(token="...")
29- eventsub_client = eventsub.EventSubClient(bot, "some_secret_string", "/callback")
29+ eventsub_client = eventsub.EventSubClient(bot, "some_secret_string", "https://your-url.here /callback")
3030 # when subscribing (you can only await inside coroutines)
3131
3232 await eventsub_client.subscribe_channel_subscriptions(channel_ID)
@@ -64,7 +64,7 @@ Running Eventsub Inside a Commands Bot
6464 self.loop.create_task(esclient.listen(port=4000))
6565
6666 try:
67- await esclient.subscribe_channel_follows (broadcaster=channel_ID )
67+ await esclient.subscribe_channel_follows_v2 (broadcaster=some_channel_ID, moderator=a_channel_mod_ID )
6868 except twitchio.HTTPException:
6969 pass
7070
@@ -77,7 +77,7 @@ Running Eventsub Inside a Commands Bot
7777
7878
7979 @esbot.event()
80- async def event_eventsub_notification_follow (payload: eventsub.ChannelFollowData) -> None:
80+ async def event_eventsub_notification_followV2 (payload: eventsub.ChannelFollowData) -> None:
8181 print('Received event!')
8282 channel = bot.get_channel('channel')
8383 await channel.send(f'{payload.data.user.name} followed woohoo!')
@@ -192,6 +192,22 @@ This is a list of events dispatched by the eventsub ext.
192192
193193 Called when a hype train ends on their channel.
194194
195+ .. function :: event_eventsub_notification_channel_shield_mode_begin(event: ChannelShieldModeBeginData)
196+
197+ Called when a channel's Shield Mode status is activated.
198+
199+ .. function :: event_eventsub_notification_channel_shield_mode_end(event: ChannelShieldModeEndData)
200+
201+ Called when a channel's Shield Mode status is deactivated.
202+
203+ .. function :: event_eventsub_notification_channel_shoutout_create(event: ChannelShoutoutCreateData)
204+
205+ Called when a channel sends a shoutout.
206+
207+ .. function :: event_eventsub_notification_channel_shoutout_receive(event: ChannelShoutoutReceiveData)
208+
209+ Called when a channel receives a shoutout.
210+
195211API Reference
196212--------------
197213
@@ -219,6 +235,30 @@ API Reference
219235 :members:
220236 :inherited-members:
221237
238+ .. attributetable::: ChannelShieldModeBeginData
239+
240+ .. autoclass :: ChannelShieldModeBeginData
241+ :members:
242+ :inherited-members:
243+
244+ .. attributetable::: ChannelShieldModeEndData
245+
246+ .. autoclass :: ChannelShieldModeEndData
247+ :members:
248+ :inherited-members:
249+
250+ .. attributetable::: ChannelShoutoutCreateData
251+
252+ .. autoclass :: ChannelShoutoutCreateData
253+ :members:
254+ :inherited-members:
255+
256+ .. attributetable::: ChannelShoutoutReceiveData
257+
258+ .. autoclass :: ChannelShoutoutReceiveData
259+ :members:
260+ :inherited-members:
261+
222262.. attributetable::: ChannelSubscribeData
223263
224264 .. autoclass :: ChannelSubscribeData
0 commit comments