Open Creveoolus opened 4 years ago
You might be getting the error because you are trying to get a non-existing child in db, I also face the problem, I solved it by putting the for-in loop inside the try-except block. I'm also still unaware of officially checking the child's existence
I want t omake an Discord bot with pyrebase, i created all what it needs. But when it stores all users i got this error:
File "bot.py", line 43, in on_member_join for user in all_users.each(): TypeError: 'NoneType' object is not iterable
It's on the "for user in all_users.each()" How can i solve it? Code: `@client.event async def on_member_join(member): guild = discord.utils.find(lambda g: g.id == 691365905577410630, client.guilds) channel = discord.utils.find(lambda c: c.id == 691366354430853123, guild.text_channels)