PublicFollowupMessage

class PublicFollowupMessage(message: Message, applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier) : FollowupMessage, PublicFollowupMessageBehavior

Holds the followup Message resulting from a public followup message and behaves on it through PublicFollowupMessageBehavior

Parameters

message

The message created by this followup. To use the message behavior your application must be authorized as a bot.

Constructors

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

Functions

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

Compares entities on id.

delete
Link copied to clipboard
open suspend fun delete()

Requests to delete this followup message.

getChannel
Link copied to clipboard
open suspend fun getChannel(): MessageChannel
getChannelOrNull
Link copied to clipboard
open suspend fun getChannelOrNull(): MessageChannel?
withStrategy
Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): PublicFollowupMessage

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

Properties

applicationId
Link copied to clipboard
open override val applicationId: Snowflake
channel
Link copied to clipboard
open val channel: MessageChannelBehavior
channelId
Link copied to clipboard
open override val channelId: Snowflake

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

id
Link copied to clipboard
open override val id: Snowflake

The id of the followup message.

kord
Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

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

The supplier used to request entities.

token
Link copied to clipboard
open override val token: String

Sources

jvm source
Link copied to clipboard