Record Class Localization.Integration.Discord
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Integration.Discord
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Integration
public static record Localization.Integration.Discord(String nullPlayer, String senderName, String formatReply, Map<String, Localization.Integration.Discord.ChannelEmbed> customCommand, Map<String,String> infoChannel, Map<String, Localization.Integration.Discord.ChannelEmbed> messageChannel)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDiscord(String nullPlayer, String senderName, String formatReply, Map<String, Localization.Integration.Discord.ChannelEmbed> customCommand, Map<String, String> infoChannel, Map<String, Localization.Integration.Discord.ChannelEmbed> messageChannel) Creates an instance of aDiscordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thecustomCommandrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatReplyrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinfoChannelrecord component.Returns the value of themessageChannelrecord component.Returns the value of thenullPlayerrecord component.Returns the value of thesenderNamerecord component.final StringtoString()Returns a string representation of this record class.withCustomCommand(Map<String, Localization.Integration.Discord.ChannelEmbed> customCommand) withFormatReply(String formatReply) withInfoChannel(Map<String, String> infoChannel) withMessageChannel(Map<String, Localization.Integration.Discord.ChannelEmbed> messageChannel) withNullPlayer(String nullPlayer) withSenderName(String senderName)
-
Constructor Details
-
Discord
public Discord(String nullPlayer, String senderName, String formatReply, Map<String, Localization.Integration.Discord.ChannelEmbed> customCommand, Map<String, String> infoChannel, Map<String, Localization.Integration.Discord.ChannelEmbed> messageChannel) Creates an instance of aDiscordrecord class.- Parameters:
nullPlayer- the value for thenullPlayerrecord componentsenderName- the value for thesenderNamerecord componentformatReply- the value for theformatReplyrecord componentcustomCommand- the value for thecustomCommandrecord componentinfoChannel- the value for theinfoChannelrecord componentmessageChannel- the value for themessageChannelrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNullPlayer
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSenderName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFormatReply
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCustomCommand
public Localization.Integration.Discord withCustomCommand(Map<String, Localization.Integration.Discord.ChannelEmbed> customCommand) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withInfoChannel
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMessageChannel
public Localization.Integration.Discord withMessageChannel(Map<String, Localization.Integration.Discord.ChannelEmbed> messageChannel) - 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). -
nullPlayer
Returns the value of thenullPlayerrecord component.- Returns:
- the value of the
nullPlayerrecord component
-
senderName
Returns the value of thesenderNamerecord component.- Returns:
- the value of the
senderNamerecord component
-
formatReply
Returns the value of theformatReplyrecord component.- Returns:
- the value of the
formatReplyrecord component
-
customCommand
Returns the value of thecustomCommandrecord component.- Returns:
- the value of the
customCommandrecord component
-
infoChannel
-
messageChannel
Returns the value of themessageChannelrecord component.- Returns:
- the value of the
messageChannelrecord component
-