Package discord4j.rest.interaction
Interface ApplicationCommandDefinition
Represents an application command that can be tested against incoming interactions and to build a response sequence.
-
Method Summary
Modifier and TypeMethodDescriptioncreateResponseHandler(RestInteraction interaction) Return the actual component responsible for maintaining interaction responses.booleantest(discord4j.discordjson.json.ApplicationCommandInteractionData acid) Match whether the incoming interaction can be handled by this command.
-
Method Details
-
test
boolean test(discord4j.discordjson.json.ApplicationCommandInteractionData acid) Match whether the incoming interaction can be handled by this command.- Parameters:
acid- the incoming interaction data- Returns:
trueif this command can handle this interaction,falseotherwise
-
createResponseHandler
Return the actual component responsible for maintaining interaction responses.- Parameters:
interaction- the interaction this command is handling- Returns:
- a source for responses around the given interaction
-