use of net.dv8tion.jda.internal.requests.restaction.TriggerRestAction in project JDA by DV8FromTheWorld.
the class InteractionHookImpl method retrieveOriginal.
@Nonnull
@Override
public RestAction<Message> retrieveOriginal() {
JDAImpl jda = (JDAImpl) getJDA();
Route.CompiledRoute route = Route.Interactions.GET_ORIGINAL.compile(jda.getSelfUser().getApplicationId(), interaction.getToken());
return onReady(new TriggerRestAction<>(jda, route, (response, request) -> jda.getEntityBuilder().createMessageWithChannel(response.getObject(), getInteraction().getMessageChannel(), false)));
}
Aggregations