Skip to content

Commit

Permalink
Fixed brackets formatting & AvatarDecoration's JavaDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsTheSky committed Apr 27, 2024
1 parent 573ba58 commit d4ac641
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main/java/net/dv8tion/jda/api/entities/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,16 @@ public String toString()
}

/**
* Represents the decoration avatar of a {@link User User}.
* Represents the avatar decoration of a {@link User User}.
*/
class AvatarDecoration {
class AvatarDecoration
{

private final String decorationAvatarId;
private final String skuId;

public AvatarDecoration(String decorationAvatarId, String skuId) {
public AvatarDecoration(String decorationAvatarId, String skuId)
{
this.decorationAvatarId = decorationAvatarId;
this.skuId = skuId;
}
Expand All @@ -486,7 +488,8 @@ public AvatarDecoration(String decorationAvatarId, String skuId) {
* @return The never-null SKU id of the {@link User User} decoration avatar.
*/
@Nonnull
public String getSkuId() {
public String getSkuId()
{
return skuId;
}

Expand All @@ -496,7 +499,8 @@ public String getSkuId() {
* @return The never-null avatar ID for this user's decoration avatar image.
*/
@Nonnull
public String getDecorationAvatarId() {
public String getDecorationAvatarId()
{
return decorationAvatarId;
}

Expand All @@ -508,7 +512,8 @@ public String getDecorationAvatarId() {
* @see User#DECORATION_AVATAR_URL
*/
@Nullable
public String getDecorationAvatarUrl() {
public String getDecorationAvatarUrl()
{
return String.format(DECORATION_AVATAR_URL, decorationAvatarId);
}

Expand Down

0 comments on commit d4ac641

Please sign in to comment.