Interface Role.RoleTags

  • Enclosing interface:
    Role

    public static interface Role.RoleTags
    Tags associated with this role.
    Since:
    4.2.1
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.String getBotId()
      The id for the bot associated with this role.
      long getBotIdLong()
      The id for the bot associated with this role.
      default java.lang.String getIntegrationId()
      The id for the integration associated with this role.
      long getIntegrationIdLong()
      The id for the integration associated with this role.
      boolean isBoost()
      Whether this role is the boost role of this guild.
      boolean isBot()
      Whether this role is associated with a bot.
      boolean isIntegration()
      Whether this role is managed by an integration.
    • Method Detail

      • isBot

        boolean isBot()
        Whether this role is associated with a bot.
        Returns:
        True, if this role is for a bot
      • getBotIdLong

        long getBotIdLong()
        The id for the bot associated with this role.
        Returns:
        The bot id, or 0 if this role is not for a bot
        See Also:
        isBot()
      • getBotId

        @Nullable
        default java.lang.String getBotId()
        The id for the bot associated with this role.
        Returns:
        The bot id, or null if this role is not for a bot
        See Also:
        isBot()
      • isBoost

        boolean isBoost()
        Whether this role is the boost role of this guild.
        Returns:
        True, if this role is the boost role
      • isIntegration

        boolean isIntegration()
        Whether this role is managed by an integration.
        This is usually true for roles such as those created for twitch subscribers.
        Returns:
        True, if this role is managed by an integration
      • getIntegrationIdLong

        long getIntegrationIdLong()
        The id for the integration associated with this role.
        Returns:
        The integration id, or 0 if this role is not for an integration
        See Also:
        isIntegration()
      • getIntegrationId

        @Nullable
        default java.lang.String getIntegrationId()
        The id for the integration associated with this role.
        Returns:
        The integration id, or null if this role is not for an integration
        See Also:
        isIntegration()