Package net.dv8tion.jda.api.entities
Class RoleIcon
java.lang.Object
net.dv8tion.jda.api.entities.RoleIcon
An object representing a Role's icon.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
ICON_URL
Template forgetIconUrl()
.- See Also:
-
-
Constructor Details
-
RoleIcon
-
-
Method Details
-
getIconId
The Discord hash-id of theRole
icon image. If no icon has been set or an emoji is used in its place, this returnsnull
.The Role icon can be modified using
RoleManager.setIcon(Icon)
.- Returns:
- Possibly-null String containing the Role's icon hash-id.
- Since:
- 4.3.1
-
getIconUrl
The URL of theRole
icon image. If no icon has been set or an emoji is used in its place, this returnsnull
.The Role icon can be modified using
RoleManager.setIcon(Icon)
.- Returns:
- Possibly-null String containing the Role's icon URL.
- Since:
- 4.3.1
-
getEmoji
The Unicode Emoji of thisRole
that is used instead of a custom image. If no emoji has been set, this returnsnull
.The Role emoji can be modified using
RoleManager.setIcon(String)
.- Returns:
- Possibly-null String containing the Role's Unicode Emoji.
- Since:
- 4.3.1
-
isEmoji
public boolean isEmoji()Whether thisRoleIcon
is an emoji instead of a custom image.- Returns:
- True, if this
RoleIcon
is an emoji
-
equals
-
hashCode
public int hashCode()
-