Migrating from V2#

This page lays out the changes you’ll need to make in your code to convert from TwitchIO V2 to V3.

Changes with PartialUser#

The following changes have been made to PartialUser. These changes also apply to User, SearchUser, and UserBan

Additions#

The following have been added:

Removals#

The following functions have been removed due to their corresponding API routes being removed:

  • PartialUser.follow()

  • PartialUser.unfollow()

  • PartialUser.replace_tags()

  • PartialUser.fetch_follow()

  • PartialUser.fetch_following()

  • PartialUser.fetch_followed()

Edits#

The following functions have had edits made to them:

Client Changes#

The following changes have been made to Client (and ext.commands.Bot by extension).

Client now takes a required parameter: token_handler. Please see token handlers for more information.

Additions#

Removals#

  • Client.from_client_credentials() (no longer needed, see token handling).

  • Client.connect() (use Client.start() instead).

  • Client.fetch_channel() (use Client.fetch_channels() instead).

  • Client.fetch_webhook_subscriptions() (webhooks are gone).

Edits#

Event Changes#

Due to changes in the dispatching mechanism, all events now take one argument. This affects all events that used to take two arguments, and also affects Client/Bot.wait_for.

The following events have changed:

  • event_join - removed the channel argument, use Chatter.channel() instead.

  • event_part - removed the channel argument, use Chatter.channel() instead.

  • event_ready - Added a dummy argument, this can be ignored and set to _ .

The following event has been removed:

The following events have been added: