Class UnsafeInteractionContextKt
-
- All Implemented Interfaces:
public final class UnsafeInteractionContextKt
-
-
Method Summary
Modifier and Type Method Description final static EphemeralMessageInteractionResponseBehaviorackEphemeral(UnsafeInteractionContext $self, SuspendFunction1<InteractionResponseCreateBuilder, Unit> builder)Send an ephemeral ack, if the interaction hasn't been acknowledged yet. final static PublicMessageInteractionResponseBehaviorackPublic(UnsafeInteractionContext $self, SuspendFunction1<InteractionResponseCreateBuilder, Unit> builder)Send a public ack, if the interaction hasn't been acknowledged yet. final static EphemeralFollowupMessagerespondEphemeral(UnsafeInteractionContext $self, Function1<FollowupMessageCreateBuilder, Unit> builder)Respond to the current interaction with an ephemeral followup, or throw if it isn't ephemeral. final static PublicFollowupMessagerespondPublic(UnsafeInteractionContext $self, Function1<FollowupMessageCreateBuilder, Unit> builder)Respond to the current interaction with a public followup. final static MessageInteractionResponseedit(UnsafeInteractionContext $self, Function1<InteractionResponseModifyBuilder, Unit> builder)Edit the current interaction's response, or throw if it isn't public. final static BaseButtonPaginatoreditingPaginator(UnsafeInteractionContext $self, String defaultGroup, Locale locale, Function1<PaginatorBuilder, Unit> builder)Create a paginator that edits the original interaction. final static BaseButtonPaginatorrespondingPaginator(UnsafeInteractionContext $self, String defaultGroup, Locale locale, Function1<PaginatorBuilder, Unit> builder)Create a paginator that creates a follow-up message, and edits that. -
-
Method Detail
-
ackEphemeral
final static EphemeralMessageInteractionResponseBehavior ackEphemeral(UnsafeInteractionContext $self, SuspendFunction1<InteractionResponseCreateBuilder, Unit> builder)
Send an ephemeral ack, if the interaction hasn't been acknowledged yet.
-
ackPublic
final static PublicMessageInteractionResponseBehavior ackPublic(UnsafeInteractionContext $self, SuspendFunction1<InteractionResponseCreateBuilder, Unit> builder)
Send a public ack, if the interaction hasn't been acknowledged yet.
-
respondEphemeral
final static EphemeralFollowupMessage respondEphemeral(UnsafeInteractionContext $self, Function1<FollowupMessageCreateBuilder, Unit> builder)
Respond to the current interaction with an ephemeral followup, or throw if it isn't ephemeral.
-
respondPublic
final static PublicFollowupMessage respondPublic(UnsafeInteractionContext $self, Function1<FollowupMessageCreateBuilder, Unit> builder)
Respond to the current interaction with a public followup.
-
edit
final static MessageInteractionResponse edit(UnsafeInteractionContext $self, Function1<InteractionResponseModifyBuilder, Unit> builder)
Edit the current interaction's response, or throw if it isn't public.
-
editingPaginator
final static BaseButtonPaginator editingPaginator(UnsafeInteractionContext $self, String defaultGroup, Locale locale, Function1<PaginatorBuilder, Unit> builder)
Create a paginator that edits the original interaction.
-
respondingPaginator
final static BaseButtonPaginator respondingPaginator(UnsafeInteractionContext $self, String defaultGroup, Locale locale, Function1<PaginatorBuilder, Unit> builder)
Create a paginator that creates a follow-up message, and edits that.
-
-
-
-