Record Class Localization.Integration.Discord.ChannelEmbed
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Integration.Discord.ChannelEmbed
- Enclosing class:
Localization.Integration.Discord
public static record Localization.Integration.Discord.ChannelEmbed(String content, String webhookName, String webhookAvatar, Localization.Integration.Discord.AllowedMentions allowedMentions, Localization.Integration.Discord.Embed embed)
extends Record
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionChannelEmbed(String content, String webhookName, String webhookAvatar, Localization.Integration.Discord.AllowedMentions allowedMentions, Localization.Integration.Discord.Embed embed) Creates an instance of aChannelEmbedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedMentionsrecord component.builder()content()Returns the value of thecontentrecord component.embed()Returns the value of theembedrecord 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.Returns the value of thewebhookAvatarrecord component.Returns the value of thewebhookNamerecord component.withAllowedMentions(Localization.Integration.Discord.AllowedMentions allowedMentions) withContent(String content) withWebhookAvatar(String webhookAvatar) withWebhookName(String webhookName)
-
Constructor Details
-
ChannelEmbed
public ChannelEmbed(String content, String webhookName, String webhookAvatar, Localization.Integration.Discord.AllowedMentions allowedMentions, Localization.Integration.Discord.Embed embed) Creates an instance of aChannelEmbedrecord class.- Parameters:
content- the value for thecontentrecord componentwebhookName- the value for thewebhookNamerecord componentwebhookAvatar- the value for thewebhookAvatarrecord componentallowedMentions- the value for theallowedMentionsrecord componentembed- the value for theembedrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withContent
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWebhookName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withWebhookAvatar
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAllowedMentions
public Localization.Integration.Discord.ChannelEmbed withAllowedMentions(Localization.Integration.Discord.AllowedMentions allowedMentions) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withEmbed
public Localization.Integration.Discord.ChannelEmbed withEmbed(Localization.Integration.Discord.Embed embed) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
webhookName
Returns the value of thewebhookNamerecord component.- Returns:
- the value of the
webhookNamerecord component
-
webhookAvatar
Returns the value of thewebhookAvatarrecord component.- Returns:
- the value of the
webhookAvatarrecord component
-
allowedMentions
Returns the value of theallowedMentionsrecord component.- Returns:
- the value of the
allowedMentionsrecord component
-
embed
Returns the value of theembedrecord component.- Returns:
- the value of the
embedrecord component
-