title: Discord.py | outputs only bot in cycle
body: <pre><code>...
                          for row in cursor.execute(f&quot;SELECT message, guild_id FROM messages WHERE channel={message.channel.id} and rowid = abs(random()) % (SELECT max(rowid) FROM messages) + 1&quot;):
                              mess=row[0]
                              guildd=int(row[1])
                              server = bot.get_guild(guildd)
                              print(f&quot;server have {server.member_count}&quot;)
                              for guild in bot.guilds: #here starts my problem &lt;----------------
                                  if guild.id == server.id:
                                      for member in guild.members:
                                          print(f&quot;member {member.name} guild {guild}&quot;)
                                          memid=str(member.id)
                                          if memid in soob:
                                              print(f&quot;message contains {memid}&quot;)
                                              mess=mess.replace(memid, '0')
                                      break
  ...
  </code></pre>
  <p>outputs is only
  (<strong>member [bot name] guild [current guild].</strong>)</p>
  <p>No information about other members of guild.</p>
  <p>It's like it doesnt see any members in the guild other than himself.</p>
  <p>This part of code is responsible to bot cant mention users</p>