Everyone role on guild.roles.everyone being undefined sometimes

In the attached image function first it awaits the login of the client then fetch the mainServer my project uses, if i print the guild.roles.everyone.id right after awaiting these things sometimes it have a value, sometimes not, if use a timeout of 500 miliseconds it always have a value, there is away to make sure it will have a value ?
2024-02-22_19-48.png
Was this page helpful?