Skip to content

Commit dfba6ff

Browse files
committed
Remove ApplicationEmoji reference from ApplicationEmojiWrapper
1 parent c325142 commit dfba6ff

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/main/java/xyz/srnyx/lazylibrary/emoji/ApplicationEmojiWrapper.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,22 @@
1212
*
1313
*/
1414
public final class ApplicationEmojiWrapper extends ApplicationEmojiImpl {
15-
@NotNull private final ApplicationEmoji emoji;
16-
1715
/**
1816
* Constructs a new ApplicationEmojiWrapper with the provided ApplicationEmoji
1917
*
2018
* @param emoji the ApplicationEmoji to wrap
2119
*/
2220
public ApplicationEmojiWrapper(@NotNull ApplicationEmoji emoji) {
2321
super(emoji.getIdLong(), (JDAImpl) emoji.getJDA(), emoji.getOwner());
24-
this.emoji = emoji;
2522
}
2623

2724
/**
28-
* Returns the mention of the emoji (e.g. {@code <:emoji_name:emoji_id>})
25+
* Returns {@link #getAsMention the mention} of the emoji (e.g. {@code <:emoji_name:emoji_id>})
2926
*
3027
* @return the mention of the emoji
3128
*/
3229
@Override @NotNull
3330
public String toString() {
34-
return emoji.getAsMention();
31+
return getAsMention();
3532
}
3633
}

0 commit comments

Comments
 (0)