Replies: 2 comments
-
I was able to run this without any issue using espn_api 0.23.0
|
Beta Was this translation helpful? Give feedback.
0 replies
-
From this error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I keep running into an issue where the player no longer has the onTeamId functionality.
My code:
`for player in team_lineups:
if player_name == player.name:
searched_player = player
The error:
`Traceback (most recent call last):
File "C:\Users\kelse\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 190, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Users\kelse\source\Bots\FootyBot\discordbotclient.py", line 274, in player
team_int = searched_player.onTeamId
AttributeError: 'int' object has no attribute 'onTeamId'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\kelse\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\bot.py", line 1347, in invoke await ctx.command.invoke(ctx) File "C:\Users\kelse\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 986, in invoke await injected(*ctx.args, **ctx.kwargs) # type: ignore File "C:\Users\kelse\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 199, in wrapped raise CommandInvokeError(exc) from exc discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'int' object has no attribute 'onTeamId'
I've got the most updated git and it has worked previously and just decided not to today. Any advice?
Beta Was this translation helpful? Give feedback.
All reactions