How are circular Dependancies avoided in Djs

in djs, guilds needs to have roles: <guild>.roles
and a role needs to have a guild: <role>.guild

how does this not result in a circular dependency of the guild and
role
classes in https://github.com/discordjs/discord.js/blob/main/packages/discord.js/src/structures/Role.js#L15
and
https://github.com/discordjs/discord.js/blob/main/packages/discord.js/src/structures/Guild.js#L15
Was this page helpful?