Class User.Profile
java.lang.Object
net.dv8tion.jda.api.entities.User.Profile
- Enclosing interface:
User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe user's accent color.intThe raw RGB value of this user's accent color.Returns anImageProxyfor this user's banner.getBanner(ImageFormat format) Returns anImageProxyfor this user's banner.The Discord Id for this user's banner image.The URL for the user's banner image.getBannerUrl(ImageFormat format) The URL for the user's banner image.toString()
-
Constructor Details
-
Profile
-
-
Method Details
-
getBannerId
-
getBannerUrl
-
getBannerUrl
The URL for the user's banner image. If the user has not set a banner, this will return null.- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null String containing the
Userbanner url. - Throws:
IllegalArgumentException- If the format isnull- See Also:
-
getBanner
Returns anImageProxyfor this user's banner.- Returns:
- Possibly-null
ImageProxyof this user's banner - See Also:
-
getBanner
Returns anImageProxyfor this user's banner.- Parameters:
format- The format in which the image should be- Returns:
- Possibly-null
ImageProxyof this user's banner - Throws:
IllegalArgumentException- If the format isnull- See Also:
-
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. -
getAccentColorRaw
public int getAccentColorRaw()The raw RGB value of this user's accent color.
Defaults toUser.DEFAULT_ACCENT_COLOR_RAWif this user's banner color is not available.- Returns:
- The raw RGB color value or
User.DEFAULT_ACCENT_COLOR_RAW
-
toString
-