Interface DirectInteraction

All Superinterfaces:
RestInteraction

@Experimental public interface DirectInteraction extends 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 Details

    • getUserData

      discord4j.discordjson.json.UserData getUserData()
      Return the raw user data that created this interaction.
      Returns:
      a user data object