Skip to content

Commit

Permalink
* change "broadcaster_name" to "broadcaster_login" in PartialUser.fet…
Browse files Browse the repository at this point in the history
…ch_moderated_channels

* update changelog
  • Loading branch information
styles784 committed Mar 24, 2024
1 parent 3cb35e0 commit cc1d85e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
:orphan:

2.9.2
=======
- TwitchIO
- Changes:
- `~twitchio.PartialUser.fetch_moderated_channels` returns "broadcaster_login" instead of "broadcaster_name"

- Bug fixes
- fix: `~twitchio.PartialUser.fetch_moderated_channels` used "user_" prefix, now uses "broadcaster_" instead

2.9.1
=======
- ext.eventsub
Expand Down
2 changes: 1 addition & 1 deletion twitchio/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ async def fetch_moderated_channels(self, token: str) -> List[PartialUser]:
List[:class:`twitchio.PartialUser`]
"""
data = await self._http.get_moderated_channels(token, str(self.id))
return [PartialUser(self._http, d["broadcaster_id"], d["broadcaster_name"]) for d in data]
return [PartialUser(self._http, d["broadcaster_id"], d["broadcaster_login"]) for d in data]

async def fetch_moderators(self, token: str, userids: List[int] = None):
"""|coro|
Expand Down

0 comments on commit cc1d85e

Please sign in to comment.