Interface RoleMemberCount


public interface RoleMemberCount
Represents a role ID alongside the number of members who have it.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The number of members which have the role.
    The corresponding Role object.
    default String
    The role ID.
    long
    The role ID as a long.
  • Method Details

    • getRoleIdLong

      long getRoleIdLong()
      The role ID as a long.
      Returns:
      The role ID
    • getRoleId

      @Nonnull default String getRoleId()
      The role ID.
      Returns:
      The role ID
    • getRole

      @Nullable Role getRole()
      The corresponding Role object.
      This might return null if the role has been deleted after the counts were received.
      Returns:
      The corresponding Role object or null
    • getMemberCount

      int getMemberCount()
      The number of members which have the role.
      Returns:
      The number of members which have the role