Record Class ReactionTypeCustomEmoji
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ReactionTypeCustomEmoji
- All Implemented Interfaces:
Serializable, ApiResult, ReactionType
public record ReactionTypeCustomEmoji(@NotNull String customEmoji)
extends Record
implements ReactionType
- See Also:
-
Field Summary
Fields inherited from interface ReactionType
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionReactionTypeCustomEmoji(@NotNull String customEmoji) Creates an instance of aReactionTypeCustomEmojirecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of thecustomEmojirecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
ReactionTypeCustomEmoji
Creates an instance of aReactionTypeCustomEmojirecord class.- Parameters:
customEmoji- the value for thecustomEmojirecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceReactionType
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
customEmoji
Returns the value of thecustomEmojirecord component.- Returns:
- the value of the
customEmojirecord component
-