Role is a role of a server. You get one from guild.roles, member.roles, member.highestRole, a role option of a command or guild.createRole(). Every server has an @everyone role that every member has: guild.everyoneRole, whose id is the id of the server.
How to check and give permissions is in Permissions; how a command receives a role is in Options.
Properties
What the role allows in the server. See Permissions.
members is read from the members the bot remembers (see Memory), so it is not always every member with the role.Helpers
These read what the bot remembers: they never send a request.iconURL()
isHigherThan()
toString()
<@&id>: mentions the role when put in a message.
toJSON()
Actions
edit()
delete()
Types
RoleEditOptions is in Options, next to RoleCreateOptions. Permissions is in Permissions.