diff --git a/twitchio/eventsub/subscriptions.py b/twitchio/eventsub/subscriptions.py index 8a1d231f..94a9daf0 100644 --- a/twitchio/eventsub/subscriptions.py +++ b/twitchio/eventsub/subscriptions.py @@ -1103,6 +1103,10 @@ def __init__(self, **condition: Unpack[Condition]) -> None: def condition(self) -> Condition: return {"broadcaster_user_id": self.broadcaster_user_id} + @property + def default_auth(self) -> DefaultAuthDict: + return {"as_bot": False, "token_for": self.broadcaster_user_id} + class ChannelSubscribeMessageSubscription(SubscriptionPayload): """The ``channel.subscription.message`` subscription type sends a notification when a user sends a resubscription chat message in a specific channel. @@ -1138,6 +1142,10 @@ def __init__(self, **condition: Unpack[Condition]) -> None: def condition(self) -> Condition: return {"broadcaster_user_id": self.broadcaster_user_id} + @property + def default_auth(self) -> DefaultAuthDict: + return {"as_bot": False, "token_for": self.broadcaster_user_id} + class ChannelCheerSubscription(SubscriptionPayload): """The ``channel.cheer`` subscription type sends a notification when a user cheers on the specified channel. @@ -1173,6 +1181,10 @@ def __init__(self, **condition: Unpack[Condition]) -> None: def condition(self) -> Condition: return {"broadcaster_user_id": self.broadcaster_user_id} + @property + def default_auth(self) -> DefaultAuthDict: + return {"as_bot": False, "token_for": self.broadcaster_user_id} + class ChannelRaidSubscription(SubscriptionPayload): """The ``channel.raid`` subscription type sends a notification when a broadcaster raids another broadcaster's channel.