TypeError: 'VoiceClient' object is not iterable #6065
-
When I try to run this within my code:
It sends me this error: TypeError: 'VoiceClient' object is not iterable And I've searched but I cant figure out why I'm getting it. If I'm missing something or am doing something wrong, could it please be pointed out? Win 10, py 3.8.6 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
discord.utils.get
expects an iterable (something you can use afor
loop with) as its first argument. AVoiceClient
cannot be iterated with so you get an error. I am unsure what you're planning on doing there, but you probably just want to usectx.guild.voice_client
and not do theget
call at all.