Record Class DiscordMainChannelCommandReceivedEvent
java.lang.Object
java.lang.Record
com.zenith.event.message.DiscordMainChannelCommandReceivedEvent
public record DiscordMainChannelCommandReceivedEvent(net.dv8tion.jda.api.events.message.MessageReceivedEvent event)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDiscordMainChannelCommandReceivedEvent(net.dv8tion.jda.api.events.message.MessageReceivedEvent event) Creates an instance of aDiscordMainChannelCommandReceivedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.dv8tion.jda.api.events.message.MessageReceivedEventevent()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.net.dv8tion.jda.api.entities.Membermember()Deprecated.message()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscordMainChannelCommandReceivedEvent
public DiscordMainChannelCommandReceivedEvent(net.dv8tion.jda.api.events.message.MessageReceivedEvent event) Creates an instance of aDiscordMainChannelCommandReceivedEventrecord class.- Parameters:
event- the value for theeventrecord component
-
-
Method Details
-
message
-
member
Deprecated. -
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). -
event
public net.dv8tion.jda.api.events.message.MessageReceivedEvent event()Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-