How are circular Dependancies avoided in Djs
in djs, guilds needs to have roles:
and a role needs to have a guild:
how does this not result in a circular dependency of the
and
https://github.com/discordjs/discord.js/blob/main/packages/discord.js/src/structures/Guild.js#L15
<guild>.rolesand a role needs to have a guild:
<role>.guildhow 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#L15and
https://github.com/discordjs/discord.js/blob/main/packages/discord.js/src/structures/Guild.js#L15
