File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ class WebsocketSubscriptionData:
7474 The data contained in this class as a :class:`dict`
7575 condition: dict[str, str]
7676 The condition used to subscribe to the subscription as a :class:`dict`.
77- token_for: str
78- The User ID used to subscribe to this subscription. This could be the Client Users ID.
77+ token_for: str | None
78+ The User ID used to subscribe to this subscription. This could be the Client Users ID. Could be ``None``.
7979 transport: :class:`~twitchio.eventsub.TransportMethod`
8080 The :class:`~twitchio.eventsub.TransportMethod` enum.
8181 This will always be :attr:`~twitchio.eventsub.TransportMethod.WEBSOCKET`.
@@ -97,7 +97,7 @@ class WebsocketSubscriptionData:
9797 def __init__ (self , data : _SubscriptionData ) -> None :
9898 self .raw_data = data
9999 self .condition : Condition = data ["condition" ]
100- self .token_for : str = data ["token_for" ]
100+ self .token_for : str | None = data ["token_for" ]
101101 self .transport : TransportMethod = TransportMethod .WEBSOCKET
102102 self .type : SubscriptionType = data ["type" ]
103103 self .version : str = data ["version" ]
You can’t perform that action at this time.
0 commit comments