I basically want the bot to get the channel ID of all text channels in all servers. I've looked for multiple hours but I can't seem to find anything. I'm guessing it would look something like this:
for server in bot.guilds:
for channel in server.channels(Channeltype=text)
print(channel.id)