Twitchapi

Latest version: v4.2.0

Safety actively analyzes 630026 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

3.8.0

Twitch
------

- Added the new Endpoint "Send a Shoutout" `Twitch.send_a_shoutout()`
- `Twitch.get_users_follows()` is now marked as deprecated
- Added missing parameter `type` to `Twitch.get_streams()`

Helper
------

- Added new Async Generator helper `limit()`, with this you can limit the amount of results returned from the given AsyncGenerator to a maximum number

EventSub
--------

- Added the following new Topics:
- "Channel Shoutout Create" `EventSub.listen_channel_shoutout_create()`
- "Channel Shoutout Receive" `EventSub.listen_channel_shoutout_receive()`

PubSub
------

- Added new Topic "Low trust Users" `PubSub.listen_low_trust_users()`

Chat
----

- Improved rate limit handling of `Chat.join_room()` when joining multiple rooms per call
- The following functions now all ignore the capitalization of the given chat room:
- `Chat.join_room()`
- `Chat.leave_room()`
- `Chat.is_mod()`
- `Chat.send_message()`
- Added `initial_channel` to `Chat.__init__()`, with this you can auto join channels on bot startup
- Added `Chat.is_in_room()`
- Added `Chat.log_no_registered_command_handler`, with this you can control if the "no registered handler for event" warnings should be logged or not


OAuth
-----

- Added the following new AuthScopes:
- `AuthScope.MODERATOR_MANAGE_SHOUTOUTS`
- `AuthScope.MODERATOR_READ_SHOUTOUTS`
- `AuthScope.MODERATOR_READ_FOLLOWERS`
- Improved async handling of `UserAuthenticator`

3.7.0

Twitch
------

- Added the following Endpoints:
- "Get AutoMod Settings" `Twitch.get_automod_settings()`
- "Update AutoMod Settings" `Twitch.update_automod_settings()`
- Added `Twitch.session_timeout` config. With this you can optionally change the timeout behavior across the entire library

OAuth
-----

- Added the following new AuthScopes:
- `MODERATOR_READ_AUTOMOD_SETTINGS`
- `MODERATOR_MANAGE_AUTOMOD_SETTINGS`

3.6.2

- Added `py.typed` file to comply with PEP-561

Twitch
------

- Fixed all Endpoints that use `AsyncIterTwitchObject` yielding some items multiple times
- added missing field `to_login` to `Twitch.get_users_follows()`

3.6.1

EventSub
-----------

- More improvements to stabilize subscription behavior for certain setups

3.6.0

EventSub
--------

- `EventSub.start()` now waits till the internal web server has fully started up

Chat
----

- Added `Chat.is_mod()` function (Thanks stolenvw !)
- Made the check if the bot is a moderator in the current channel for message sending rate limiting more consistent (Thanks stolenvw !)

3.5.2

Twitch
------

- Fixed `Twitch.end_prediction()` calling NoneType

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.