How should I get a role object from id? discord.js I'm using
message.guild.roles.cache(toString(role id here))
It's cache.get since cache is an instance of Collection
See <Collection>.get
message.guild.roles.cache.get(id)
In the latest versions of discord.js, <RoleManager>.cache has the type of Collection
So, to get a value stored in the collection, you'll be required to use the .get("key") method
Example:
const roleId = "your-role-id";
message.guild.roles.cache.get(roleId) // Returns <Role> object