Message Context Parameter Resolver
interface MessageContextParameterResolver<T : ParameterResolver<T, R>, MessageContextParameterResolver<T, R>, R : Any> : IParameterResolver<T> (source)
Parameter resolver for parameters of @JDAMessageCommand.
Needs to be implemented alongside a ParameterResolver subclass.
Parameters
T
Type of the implementation
R
Type of the returned resolved objects
Functions
Link copied to clipboard
Returns a resolved object from this message context interaction.
Link copied to clipboard
open suspend fun resolveSuspend(info: MessageCommandInfo, event: MessageContextInteractionEvent): R?
open suspend fun resolveSuspend(option: MessageContextCommandOption, event: MessageContextInteractionEvent): R?
Returns a resolved object from this message context interaction.