Skip to content
Advertisement

discord.py – BanIterator object is not iterable

I’m trying to make an unban command but I have no way of getting the banned users list. This is the code:

JavaScript

Error code:

JavaScript

I tried even copying the code from this man (https://youtu.be/KS1_3km5vC0) but it doesn’t work. This is the code:

JavaScript

Error code:

JavaScript

This is all the bot code:

JavaScript

Advertisement

Answer

as in Documentation , you need to do it in async for

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement