MessageImpl

class MessageImpl(val yde: YDE, val json: JsonNode, val idAsLong: Long) : Message(source)

Constructors

Link copied to clipboard
constructor(yde: YDE, json: JsonNode, idAsLong: Long)

Functions

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

Deletes this message.

Link copied to clipboard
open override fun toString(): String

Converts this entity to a string using the io.github.ydwk.ydwk.util.EntityToStringBuilder.

Properties

Link copied to clipboard
open override val activity: MessageActivity?

The activity of this message.

Link copied to clipboard
open override val application: PartialApplication?

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
open override val attachments: List<Attachment>

The attachments.

Link copied to clipboard
open override val author: User

The author of this message.

Link copied to clipboard
open override val channel: Channel

The channel where this message was sent.

Link copied to clipboard
open override val components: List<Component>

The components of this message.

Link copied to clipboard
open override val content: String

The content of this message.

Link copied to clipboard
open override val editedTime: String?

The time when this message was edited.

Link copied to clipboard
open override val embeds: List<Embed>

The embedded contents.

Link copied to clipboard
open override 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
open override val idAsLong: Long

The id of this snowflake as a Long.

Link copied to clipboard
open override val interaction: MessageInteraction?

The interaction of this message.

Link copied to clipboard
open override val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override val mentionedChannels: List<Channel>

The mentioned channels.

Link copied to clipboard
open override val mentionedRoles: List<Role>

The mentioned roles.

Link copied to clipboard
open override val mentionedUsers: List<User>

The mentioned users.

Link copied to clipboard
open override val mentionEveryone: Boolean

Gets weather this message mentions everyone.

Link copied to clipboard

The message reference of this message.

Link copied to clipboard
open override val nonce: String?

The nonce.

Link copied to clipboard
open override val pinned: Boolean

Gets weather this message is pinned.

Link copied to clipboard
open override val position: Long?

The position of this message.

Link copied to clipboard
open override val reactions: List<Reaction>

The reactions.

Link copied to clipboard
open override val referencedMessage: Message?

The referenced message of this message.

Link copied to clipboard
open override val stickerItems: List<StickerItem>

The sticker items of this message.

Link copied to clipboard
open override val thread: Channel?

The thread of this message.

Link copied to clipboard
open override val time: String

The time when this message was sent.

Link copied to clipboard
open override val tts: Boolean

Gets weather this message is TTS.

Link copied to clipboard
open override val type: MessageType

The type of this message.

Link copied to clipboard
open override val webhookId: GetterSnowFlake?

The webhook id of this message.

Link copied to clipboard
open override val yde: YDE

The main YDE instance.