Manages API methods for roles and stores their cache.
@everyonerole of the guild
The guild belonging to this manager
The role with the highest position in the cache
Gets the managed role a user created when joining the guild, if any Only ever available for bots
Compares the positions of two roles.
ReturnsNegative number if the first role's position is lower (second role's is higher), positive number if the first's is higher (second's is lower), 0 if equal
Creates a new role in the guild with given information. The position will silently reset to 1 if an invalid one is provided, or none.
Deletes a role.
Edits a role of the guild.
Resolves a data entry to a data Object.
ReturnsAn instance from this Manager
|idOrInstance||Holds||No||The id or instance of something in this Manager|
Resolves a data entry to an instance id.
|idOrInstance||Key | Holds||No||The id or instance of something in this Manager|
Sets the new position of the role.
Batch-updates the guild's role positions