Skip to content

Commit c23f726

Browse files
Change revokation to revocation. (#342)
- "revokation" is a typo. It should be "revocation" per Twitch documentation: https://dev.twitch.tv/docs/eventsub/handling-webhook-events Co-authored-by: Myst(MysterialPy) <[email protected]>
1 parent f877219 commit c23f726

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

docs/changelog.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ Master
3131
- ext.commands
3232
- Bug fixes
3333
- Make sure double-quotes are properly tokenized for bot commands
34-
34+
3535
- ext.pubsub
3636
- Additions
3737
- Websocket automatically handles "RECONNECT" requests by Twitch
38-
- Bug fixes
38+
- Bug fixes
3939
- Unsubscribing from Pubsubevents works again
4040
- Fix a forgotten nonce in :func:`~twitchio.ext.pubsub.websocket._send_topics`
4141
- :class:`~twitchio.ext.pubsub.PubSubModerationActionChannelTerms` now uses the correct type data
@@ -63,7 +63,15 @@ Master
6363

6464

6565
- Bug fixes
66-
Correct typo in :class:`~twitchio.ext.eventsub.HypeTrainBeginProgressData` attribute :attr:`~twitchio.ext.eventsub.HypeTrainBeginProgressData.expires`
66+
- Correct typo in :class:`~twitchio.ext.eventsub.HypeTrainBeginProgressData` attribute :attr:`~twitchio.ext.eventsub.HypeTrainBeginProgressData.expires`
67+
- Correct typo "revokation" to "revocation" in server _message_types.
68+
69+
- ext.pubsub
70+
- Bug fixes
71+
- "type" of :class:`~twitchio.ext.pubsub.PubSubModerationActionChannelTerms` now uses the correct type data
72+
73+
- Correct typo in :class:`~twitchio.ext.eventsub.HypeTrainBeginProgressData` attribute :attr:`~twitchio.ext.eventsub.HypeTrainBeginProgressData.expires`
74+
6775

6876
2.4.0
6977
======

twitchio/ext/eventsub/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
_message_types = {
2323
"webhook_callback_verification": models.ChallengeEvent,
2424
"notification": models.NotificationEvent,
25-
"revokation": models.RevokationEvent,
25+
"revocation": models.RevokationEvent,
2626
}
2727

2828

@@ -242,7 +242,7 @@ async def _callback(self, request: web.Request) -> web.Response:
242242
self.client.run_event(
243243
f"eventsub_notification_{models.SubscriptionTypes._name_map[event.subscription.type]}", event
244244
)
245-
elif typ == "revokation":
245+
elif typ == "revocation":
246246
self.client.run_event("eventsub_revokation", event)
247247

248248
return response

0 commit comments

Comments
 (0)