Class User.Profile

  • Enclosing interface:
    User

    public static class User.Profile
    extends java.lang.Object
    Represents the information contained in a User's profile.
    Since:
    4.3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Profile​(long userId, java.lang.String bannerId, int accentColor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Color getAccentColor()
      The user's accent color.
      int getAccentColorRaw()
      The raw RGB value of this user's accent color.
      java.lang.String getBannerId()
      The Discord Id for this user's banner image.
      java.lang.String getBannerUrl()
      The URL for the user's banner image.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Profile

        public Profile​(long userId,
                       java.lang.String bannerId,
                       int accentColor)
    • Method Detail

      • getBannerId

        @Nullable
        public java.lang.String getBannerId()
        The Discord Id for this user's banner image. If the user has not set a banner, this will return null.
        Returns:
        Possibly-null String containing the User banner id.
      • getBannerUrl

        @Nullable
        public java.lang.String getBannerUrl()
        The URL for the user's banner image. If the user has not set a banner, this will return null.
        Returns:
        Possibly-null String containing the User banner url.
        See Also:
        User.BANNER_URL
      • getAccentColor

        @Nullable
        public java.awt.Color getAccentColor()
        The user's accent color. If the user has not set an accent color, this will return null. The automatically calculated color is not returned. The accent color is not shown in the client if the user has set a banner.
        Returns:
        Possibly-null Color containing the User accent color.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object