dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
683 stars 162 forks source link

fetch_members bug #373

Closed Segeco closed 2 years ago

Segeco commented 2 years ago

Summary

get_guild only works on guilds with less than 1k members. Returns 'None'

Reproduction Steps

Run bot.get_guild(ID) in a server with more than 1k members.

Code

guild1 = client.get_guild(1017106675070677073)
        print(guild1)
        # RETURNS NONE ^
        members = await guild1.fetch_members(channels = guild.channels, force_scraping = True)
        print(len(members))
        for member in guild1.members:
                userList.append(member.id)
                print(member.id) # or some other Stuff

Expected Results

Returns an int value of members.

Actual Results

Returns None.

System Information

Checklist

Additional Information

No response

dolfies commented 2 years ago

I'm failing to understand exactly what you mean here, but I'm assuming this is related to #296.