EphemeralFollowupMessage

class EphemeralFollowupMessage(val message: Message, val applicationId: Snowflake, val token: String, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : FollowupMessage, EphemeralFollowupMessageBehavior(source)

Holds the followup Message resulting from an ephemeral followup message and behaves on it through EphemeralFollowupMessageBehavior.

Parameters

message

The message created by this followup. 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
Link copied to clipboard
Link copied to clipboard
open override val channelId: Snowflake

The id of the MessageChannel the followup message was sent in.

Link copied to clipboard
open override val id: Snowflake

The id of the followup message.

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

Functions

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

Link copied to clipboard
open suspend fun delete()

Requests to delete this followup message.

Link copied to clipboard

Requests to edit this followup message.

Link copied to clipboard
open suspend fun getChannel(): MessageChannel
Link copied to clipboard
open suspend fun getChannelOrNull(): MessageChannel?
Link copied to clipboard

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