Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set follow doesnt work #327

Open
DKnightX91 opened this issue Oct 27, 2023 · 0 comments
Open

Set follow doesnt work #327

DKnightX91 opened this issue Oct 27, 2023 · 0 comments

Comments

@DKnightX91
Copy link

DKnightX91 commented Oct 27, 2023

!twitch setfollow snowchickengod <#743265787950792715>

Error in command 'twitch setfollow'. Check your console or logs for details.

[2023-10-27 02:23:28] [ERROR] red: Exception in command 'twitch setfollow'
Traceback (most recent call last):
File "/data/venv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/cogs/CogManager/cogs/twitch/twitch.py", line 156, in set_follow
followers, total = await self.get_all_followers(profile.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/cogs/CogManager/cogs/twitch/twitch_api.py", line 167, in get_all_followers
follows = [x["from_id"] for x in data["data"]]
~~~~^^^^^^^^
KeyError: 'data'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant