Skip to content

Commit c205f02

Browse files
authored
fix typo in Channel.user() (#203)
fix `user()` method that raises `TypeError: got an unexpected keyword argument 'login'`
1 parent c87b3b5 commit c205f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def user(self, force=False) -> "User":
127127
--------
128128
:class:`twitchio.User` the user associated with the channel
129129
"""
130-
return (await self._ws._client.fetch_users(login=[self._name], force=force))[0]
130+
return (await self._ws._client.fetch_users(names=[self._name], force=force))[0]
131131

132132
async def fetch_bits_leaderboard(
133133
self, token: str, period: str = "all", user_id: int = None, started_at: datetime.datetime = None

0 commit comments

Comments
 (0)