title: How do I make my discord bot get all text channel id's in all servers?
body: <p>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:</p>
  <pre><code>for server in bot.guilds:
      for channel in server.channels(Channeltype=text)
          print(channel.id)
  </code></pre>