Record Class DiscordClient
java.lang.Object
java.lang.Record
net.flectone.pulse.module.integration.discord.model.DiscordClient
-
Constructor Summary
ConstructorsConstructorDescriptionDiscordClient(@NonNull String token, @NonNull FPlayer sender, @NonNull discord4j.core.DiscordClient client, @NonNull discord4j.core.GatewayDiscordClient gateway, long id) Creates an instance of aDiscordClientrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull discord4j.core.DiscordClientclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull discord4j.core.GatewayDiscordClientgateway()Returns the value of thegatewayrecord component.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.@NonNull FPlayersender()Returns the value of thesenderrecord component.@NonNull Stringtoken()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscordClient
public DiscordClient(@NonNull String token, @NonNull FPlayer sender, @NonNull discord4j.core.DiscordClient client, @NonNull discord4j.core.GatewayDiscordClient gateway, long id) Creates an instance of aDiscordClientrecord class.- Parameters:
token- the value for thetokenrecord componentsender- the value for thesenderrecord componentclient- the value for theclientrecord componentgateway- the value for thegatewayrecord componentid- the value for theidrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
client
public @NonNull discord4j.core.DiscordClient client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
gateway
public @NonNull discord4j.core.GatewayDiscordClient gateway()Returns the value of thegatewayrecord component.- Returns:
- the value of the
gatewayrecord component
-
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-