I have this code which I tried making to have my bot status saying how many servers he is in. But there is an error and PyCharm says that bot doesn't have the attribute servers. How do I fix it?
bot
servers
await bot.change_presence(status=discord.Game(name="on " + str(len(bot.servers)) + " Servers.", type=0))
bot.servers does not exist. Use bot.guilds instead.
bot.servers
bot.guilds
await bot.change_presence(status=discord.Game(name="on " + str(len(bot.guilds)) + " Servers.", type=0))```
1.4m articles
1.4m replys
5 comments
57.0k users