Package discord4j.rest.interaction
Interface DirectInteraction
- All Superinterfaces:
RestInteraction
An
RestInteraction originated from a DM channel, available for global commands and users that share a guild
with a bot associated with this application. Allows access to the interaction user.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.UserDataReturn the raw user data that created this interaction.Methods inherited from interface discord4j.rest.interaction.RestInteraction
acknowledge, acknowledgeEphemeral, getChannelId, getCommandInteractionData, getData, getId, reply, reply, replyEphemeral
-
Method Details
-
getUserData
discord4j.discordjson.json.UserData getUserData()Return the raw user data that created this interaction.- Returns:
- a user data object
-