Role

public struct Role

Role Type

  • Color of role as an Int

    Declaration

    Swift

    public let color: Int
  • id

    ID of the role

    Declaration

    Swift

    public let id: Snowflake
  • Whether or not this role is hoisted

    Declaration

    Swift

    public let isHoisted: Bool
  • Whether or not this role is managed

    Declaration

    Swift

    public let isManaged: Bool
  • Whether or not this role is mentionable

    Declaration

    Swift

    public let isMentionable: Bool
  • The name of the role

    Declaration

    Swift

    public let name: String
  • The permission number for this role

    Declaration

    Swift

    public let permissions: Int
  • The position for this role

    Declaration

    Swift

    public let position: Int