Record Class InvocationContext.Utility
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.dispatching.context.InvocationContext.Utility
- Record Components:
i18n- TheI18nclass used by JDA-CommandsmessageResolver- TheMessageResolverclass used by JDA-Commands
- Enclosing class:
InvocationContext<T extends GenericInteractionCreateEvent>
public static record InvocationContext.Utility(I18n i18n, MessageResolver messageResolver)
extends Record
An object providing access to some framework functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionUtility(I18n i18n, MessageResolver messageResolver) Creates an instance of aUtilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.i18n()Returns the value of thei18nrecord component.Returns the value of themessageResolverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Utility
Creates an instance of aUtilityrecord class.- Parameters:
i18n- the value for thei18nrecord componentmessageResolver- the value for themessageResolverrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
i18n
-
messageResolver
Returns the value of themessageResolverrecord component.- Returns:
- the value of the
messageResolverrecord component
-