-
-
Notifications
You must be signed in to change notification settings - Fork 166
Closed
Labels
3.xTwitchIO 3.0TwitchIO 3.0Addressed in next releaseThis issue will be closed when the next release is createdThis issue will be closed when the next release is createdConfirmed BugBug has been confirmedBug has been confirmed
Milestone
Description
What actually happened?
fetch_chatters_color gives an error if the user does not have any color set.
unpack requires a buffer of 3 bytes in line:
Line 480 in 5774dee
| rgb: tuple[int, int, int] = struct.unpack("BBB", bytes.fromhex(value)) |
because the received value is an empty string.
What did you expect to happen instead?
Maybe return all the color values as None. Or return None for respected user_id instead of ChatterColor
Minimum reproducible example:
tmi_user = await ctx.bot.fetch_user(login=name)
tmi_color = (await ctx.bot.fetch_chatters_color([tmi_user.id]))[0]
color = tmi_color.colorSteps to reproduce the problem
Replace name with "cool_name" it has no color set.
Additional logs:
No response
System and Environment information
3.0.1
EvieePy
Metadata
Metadata
Assignees
Labels
3.xTwitchIO 3.0TwitchIO 3.0Addressed in next releaseThis issue will be closed when the next release is createdThis issue will be closed when the next release is createdConfirmed BugBug has been confirmedBug has been confirmed
Type
Projects
Status
Done