#my discord bot with 2k servers takes a long time to start

1 messages · Page 1 of 1 (latest)

blissful tokenBOT
#
Too Many Tags

Please use either the disnake or python tag, but not both. If your question pertains to disnake, please use the disnake tag. If your question is a general python question that does not depend on disnake, please use the python tag.
I've taken a guess based on the contents of your message which your question is actually about.

If you believe this to be in error, please let us know.

tame wraith
#

how long? it usually takes quite a bit before the cache has been fully loaded depending on your intents

dapper folio
#

@frozen hedge consider not chunking guilds

#

If your bot doesn't require all members to be cached, this is the first thing you should do: ```py

somewhere in bot definition:

bot = commands.Bot(..., chunk_guilds_at_startup=False)

#

However, keep in mind that Guild.get_member will almost always return None after that. In order to get members you will have to use Guild.getch_member and Guild.getch_members

frozen hedge
dapper folio
dapper folio
frozen hedge
dapper folio
#

Guilds, channels, roles, etc. remain cached