Record Class DispatchingContext
java.lang.Object
java.lang.Record
com.github.kaktushose.jda.commands.dispatching.DispatchingContext
@Internal
public record DispatchingContext(Middlewares middlewares, ErrorMessageFactory errorMessageFactory, InteractionRegistry registry, TypeAdapters adapterRegistry, ExpirationStrategy expirationStrategy, InteractionControllerInstantiator instanceProvider, InteractionDefinition.ReplyConfig globalReplyConfig, Embeds embeds, I18n i18n, MessageResolver messageResolver)
extends Record
A collection of classes relevant for
EventHandlers.-
Constructor Summary
ConstructorsConstructorDescriptionDispatchingContext(Middlewares middlewares, ErrorMessageFactory errorMessageFactory, InteractionRegistry registry, TypeAdapters adapterRegistry, ExpirationStrategy expirationStrategy, InteractionControllerInstantiator instanceProvider, InteractionDefinition.ReplyConfig globalReplyConfig, Embeds embeds, I18n i18n, MessageResolver messageResolver) Creates an instance of aDispatchingContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadapterRegistryrecord component.embeds()Returns the value of theembedsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessageFactoryrecord component.Returns the value of theexpirationStrategyrecord component.Returns the value of theglobalReplyConfigrecord component.final inthashCode()Returns a hash code value for this object.i18n()Returns the value of thei18nrecord component.Returns the value of theinstanceProviderrecord component.Returns the value of themessageResolverrecord component.Returns the value of themiddlewaresrecord component.registry()Returns the value of theregistryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DispatchingContext
public DispatchingContext(Middlewares middlewares, ErrorMessageFactory errorMessageFactory, InteractionRegistry registry, TypeAdapters adapterRegistry, ExpirationStrategy expirationStrategy, InteractionControllerInstantiator instanceProvider, InteractionDefinition.ReplyConfig globalReplyConfig, Embeds embeds, I18n i18n, MessageResolver messageResolver) Creates an instance of aDispatchingContextrecord class.- Parameters:
middlewares- the value for themiddlewaresrecord componenterrorMessageFactory- the value for theerrorMessageFactoryrecord componentregistry- the value for theregistryrecord componentadapterRegistry- the value for theadapterRegistryrecord componentexpirationStrategy- the value for theexpirationStrategyrecord componentinstanceProvider- the value for theinstanceProviderrecord componentglobalReplyConfig- the value for theglobalReplyConfigrecord componentembeds- the value for theembedsrecord componenti18n- 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). -
middlewares
Returns the value of themiddlewaresrecord component.- Returns:
- the value of the
middlewaresrecord component
-
errorMessageFactory
Returns the value of theerrorMessageFactoryrecord component.- Returns:
- the value of the
errorMessageFactoryrecord component
-
registry
Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-
adapterRegistry
Returns the value of theadapterRegistryrecord component.- Returns:
- the value of the
adapterRegistryrecord component
-
expirationStrategy
Returns the value of theexpirationStrategyrecord component.- Returns:
- the value of the
expirationStrategyrecord component
-
instanceProvider
Returns the value of theinstanceProviderrecord component.- Returns:
- the value of the
instanceProviderrecord component
-
globalReplyConfig
Returns the value of theglobalReplyConfigrecord component.- Returns:
- the value of the
globalReplyConfigrecord component
-
embeds
Returns the value of theembedsrecord component.- Returns:
- the value of the
embedsrecord component
-
i18n
Returns the value of thei18nrecord component.- Returns:
- the value of the
i18nrecord component
-
messageResolver
Returns the value of themessageResolverrecord component.- Returns:
- the value of the
messageResolverrecord component
-