Answer the question
In order to leave comments, you need to log in
Stupid mistake in the user iteration loop?
there is a cycle for checking all users in guilds, but for some reason it is performed 1 time, although there are 5 people in the discord.
from builtins import range
import discord
import json
import requests
import asyncio
import datetime
import psycopg2
from datetime import datetime
from discord.ext import commands
from discord.utils import get
from config import settings
botid = f"<@{settings['id']}>"
client = commands.Bot(command_prefix=settings['prefix'])
client.remove_command('help')
@client.event
async def on_ready():
for guild in client.guilds:
for member in guild.members:
print(guild.members)
client.run(settings['token'])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question