class InviteRole
extends
BaseRoleexport class InviteRole extends BaseRoleRepresents a role received from an invite
readonlyhexColor : HexColorString
The hexadecimal version of the role color, with a leading hashtag
Inherited from: BaseRole
iconURL(options?: ImageURLOptions = {}) : string | null
options?: ImageURLOptions = {}
A link to the role's icon
Inherited from: BaseRole
toString() : RoleMention
When concatenated with a string, this automatically returns the role's mention instead of the Role object.
Examples:
// Logs: Role: <@&123456789012345678>
console.log(`Role: ${role}`);Inherited from: BaseRole