Message

Functions

Link copied to clipboard
open fun delete(): CompletableDeferred<NoResult>

Deletes this message.

Properties

Link copied to clipboard
abstract val activity: MessageActivity?

The activity of this message.

Link copied to clipboard

The application of this message.

Link copied to clipboard
open val asIncrement: Long

The increment of this snowflake.

Link copied to clipboard
open val asProcessId: Long

The process id of this snowflake.

Link copied to clipboard
open val asTimestamp: Long

The timestamp of this snowflake. (Milliseconds since Discord Epoch, the first second of 2015 or 1420070400000.)

Link copied to clipboard
open val asWorkerId: Long

The worker id of this snowflake.

Link copied to clipboard
abstract val attachments: List<Attachment>

The attachments.

Link copied to clipboard
abstract val author: User

The author of this message.

Link copied to clipboard
abstract val channel: Channel

The channel where this message was sent.

Link copied to clipboard
abstract val components: List<Component>

The components of this message.

Link copied to clipboard
abstract val content: String

The content of this message.

Link copied to clipboard
abstract val editedTime: String?

The time when this message was edited.

Link copied to clipboard
abstract val embeds: List<Embed>

The embedded contents.

Link copied to clipboard
abstract val flags: MessageFlag?

The flags of this message.

Link copied to clipboard
open val id: String

The id of this snowflake as a String.

Link copied to clipboard
abstract val idAsLong: Long

The id of this snowflake as a Long.

Link copied to clipboard

The interaction of this message.

Link copied to clipboard
abstract val json: JsonNode

The json representation of this entity.

Link copied to clipboard

The mentioned channels.

Link copied to clipboard
abstract val mentionedRoles: List<Role>

The mentioned roles.

Link copied to clipboard
abstract val mentionedUsers: List<User>

The mentioned users.

Link copied to clipboard
abstract val mentionEveryone: Boolean

Gets weather this message mentions everyone.

Link copied to clipboard

The message reference of this message.

Link copied to clipboard
abstract val nonce: String?

The nonce.

Link copied to clipboard
abstract val pinned: Boolean

Gets weather this message is pinned.

Link copied to clipboard
abstract val position: Long?

The position of this message.

Link copied to clipboard
abstract val reactions: List<Reaction>

The reactions.

Link copied to clipboard
abstract val referencedMessage: Message?

The referenced message of this message.

Link copied to clipboard

The sticker items of this message.

Link copied to clipboard
abstract val thread: Channel?

The thread of this message.

Link copied to clipboard
abstract val time: String

The time when this message was sent.

Link copied to clipboard
abstract val tts: Boolean

Gets weather this message is TTS.

Link copied to clipboard
abstract val type: MessageType

The type of this message.

Link copied to clipboard
abstract val webhookId: GetterSnowFlake?

The webhook id of this message.

Link copied to clipboard
abstract val yde: YDE

The main YDE instance.