Skip to content

Commit

Permalink
token_for should default to None in subscribe_webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Feb 12, 2025
1 parent 7954498 commit 786c9bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion twitchio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ async def subscribe_webhook(
payload: SubscriptionPayload,
*,
as_bot: bool = False,
token_for: str | PartialUser | None,
token_for: str | PartialUser | None = None,
callback_url: str | None = None,
eventsub_secret: str | None = None,
) -> SubscriptionResponse | None:
Expand Down
2 changes: 1 addition & 1 deletion twitchio/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ async def subscribe_webhook(
payload: SubscriptionPayload,
*,
as_bot: bool = True,
token_for: str | PartialUser | None,
token_for: str | PartialUser | None = None,
callback_url: str | None = None,
eventsub_secret: str | None = None,
) -> SubscriptionResponse | None:
Expand Down

0 comments on commit 786c9bb

Please sign in to comment.