GatewayInteractionResponse

interface GatewayInteractionResponse : InteractionResponse

A handler for common operations related to an interaction followup response.

Functions

createFollowupMessage
Link copied to clipboard
abstract fun createFollowupMessage(p0: MultipartRequest<out WebhookExecuteRequest>): Mono<MessageData>
abstract fun createFollowupMessage(p0: String): Mono<MessageData>
createFollowupMessageEphemeral
Link copied to clipboard
abstract fun createFollowupMessageEphemeral(p0: String): Mono<MessageData>
deleteFollowupMessage
Link copied to clipboard
abstract fun deleteFollowupMessage(p0: Long): Mono<Void>
deleteInitialResponse
Link copied to clipboard
abstract fun deleteInitialResponse(): Mono<Void>
editFollowupMessage
Link copied to clipboard
abstract fun editFollowupMessage(p0: Long, p1: MultipartRequest<WebhookMessageEditRequest>): Mono<MessageData>
abstract fun editFollowupMessage(p0: Long, p1: WebhookMessageEditRequest, p2: Boolean): Mono<MessageData>
editInitialResponse
Link copied to clipboard
abstract fun editInitialResponse(p0: WebhookMessageEditRequest): Mono<MessageData>
abstract fun editInitialResponse(p0: MultipartRequest<WebhookMessageEditRequest>): Mono<MessageData>
getInitialResponse
Link copied to clipboard
abstract fun getInitialResponse(): Mono<MessageData>
sendFollowupMessage
Link copied to clipboard
abstract suspend fun sendFollowupMessage(spec: WebhookExecuteSpec): Message

Create and send a new followup message using the provided spec. This uses a webhook tied to the interaction ID and token.

abstract suspend fun sendFollowupMessage(content: String, ephemeral: Boolean = false): Message

Create and send a new followup message with the provided content. This uses a webhook tied to the interaction ID and token.

sendFollowupMessageEphemeral
Link copied to clipboard
abstract suspend fun sendFollowupMessageEphemeral(spec: WebhookExecuteSpec): Message

Properties

client
Link copied to clipboard
abstract val client: GatewayDiscordClient

The gateway client associated with this interaction.

Extensions

sendFollowupEmbed
Link copied to clipboard
suspend fun GatewayInteractionResponse.sendFollowupEmbed(build: EmbedBuilder.() -> Unit): Message

Create and send a new followup message containing an embed built from the specified builder. This uses a webhook tied to the interaction ID and token.

sendFollowupEmbedEphemeral
Link copied to clipboard
suspend fun GatewayInteractionResponse.sendFollowupEmbedEphemeral(build: EmbedBuilder.() -> Unit): Message

Create and send a new ephemeral followup message containing an embed built from the specified builder. This uses a webhook tied to the interaction ID and token.

sendFollowupMessage
Link copied to clipboard
suspend fun GatewayInteractionResponse.sendFollowupMessage(build: WebhookMessageBuilder.() -> Unit): Message

Create and send a new followup message, using the builder to build the request. This uses a webhook tied to the interaction ID and token.

suspend fun GatewayInteractionResponse.sendFollowupMessage(spec: EmbedCreateSpec): Message

Create and send a new followup message containing an embed from the specified spec. This uses a webhook tied to the interaction ID and token.

sendFollowupMessageEphemeral
Link copied to clipboard
suspend fun GatewayInteractionResponse.sendFollowupMessageEphemeral(build: WebhookMessageBuilder.() -> Unit): Message

Create and send a new ephemeral followup message, using the builder to build the request. This uses a webhook tied to the interaction ID and token.

Create and send a new ephemeral followup message containing an embed from the specified spec. This uses a webhook tied to the interaction ID and token.

Sources

jvm source
Link copied to clipboard