Hello there π
Trying to assign a role to a user. When i put
console.log(client.guilds.cache);
on top of my code, it logs the guilds cache.
When it comes to the part where i actually need it,
const tripsitGuild = await client.guilds.cache.get(discordGuildId);
const roleIrcVerified = tripsitGuild.roles.cache.find(
role => role.id === roleIrcVerifiedId,
);
it says Cannot read properties of undefined (reading 'guilds')