Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chillymosh committed May 18, 2024
1 parent 1450431 commit c276f07
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions twitchio/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -2963,6 +2963,22 @@ async def unblock_user(
return await self._http.put_block_user(user_id=user_id, token_for=token_for)

async def fetch_active_extensions(self, token_for: str | None = None) -> ActiveExtensions:
"""
Fetches a user's active extensions.
!!! info
To include extensions that you have under development, you must specify a user access token that includes the `user:read:broadcast` or `user:edit:broadcast` scope.
Parameters
----------
token_for: str | None
Optional user access token. To include extensions that you have under development, you must specify a user access token that includes the `user:read:broadcast` or `user:edit:broadcast` scope.
Returns
-------
ActiveExtensions
ActiveExtensions object.
"""
data = await self._http.get_active_user_extensions(user_id=self.id, token_for=token_for)
return ActiveExtensions(data["data"])

Expand Down

0 comments on commit c276f07

Please sign in to comment.