Record Class RichInvocationContext
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.dispatching.context.internal.RichInvocationContext
@Internal
public record RichInvocationContext(InvocationContext<?> invocationContext, Runtime runtime)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRichInvocationContext(InvocationContext<?> invocationContext, Runtime runtime) Creates an instance of aRichInvocationContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static FrameworkContextstatic InvocationContext<?> static net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEventstatic RichInvocationContextstatic Runtimestatic Localefinal inthashCode()Returns a hash code value for this object.Returns the value of theinvocationContextrecord component.runtime()Returns the value of theruntimerecord component.static booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RichInvocationContext
Creates an instance of aRichInvocationContextrecord class.- Parameters:
invocationContext- the value for theinvocationContextrecord componentruntime- the value for theruntimerecord component
-
-
Method Details
-
scopeBound
public static boolean scopeBound() -
getRichContext
-
getInvocationContext
-
getRuntime
-
getFramework
-
getUserLocale
-
getJdaEvent
public static net.dv8tion.jda.api.events.interaction.GenericInteractionCreateEvent getJdaEvent() -
getReplyConfig
-
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). -
invocationContext
Returns the value of theinvocationContextrecord component.- Returns:
- the value of the
invocationContextrecord component
-
runtime
Returns the value of theruntimerecord component.- Returns:
- the value of the
runtimerecord component
-