EphemeralMessageInteractionResponse

class EphemeralMessageInteractionResponse(val message: Message, val applicationId: Snowflake, val token: String, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : MessageInteractionResponse, EphemeralMessageInteractionResponseBehavior(source)

An EphemeralMessageInteractionResponseBehavior that holds the message this is a handle to.

Parameters

message

The message. Any rest calls made through the message behavior, e.g. message.delete(), will throw since ephemeral messages are not accessible through bot authorization.

Constructors

Link copied to clipboard
constructor(message: Message, applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier)

Properties

Link copied to clipboard
open override val applicationId: Snowflake

Copied from the Interaction the response is for.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard
Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard
open override val token: String

Copied from the Interaction the response is for.

Functions

Link copied to clipboard
Link copied to clipboard

Follows up an interaction response by sending a FollowupMessage without the Ephemeral flag.

Link copied to clipboard
open suspend fun delete()

Requests to delete the message.

Link copied to clipboard
open suspend fun getFollowupMessage(messageId: Snowflake): FollowupMessage

Returns a followup message for an interaction response.

Link copied to clipboard
open suspend fun getFollowupMessageOrNull(messageId: Snowflake): FollowupMessage?

Returns a followup message for an interaction response or null if it was not found.

Link copied to clipboard

Returns a copy of this class with a new supplier provided by the strategy.