DmChannelImpl

class DmChannelImpl(val yde: YDE, val json: JsonNode, val idAsLong: Long) : ChannelImpl, DmChannel(source)

Constructors

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

Functions

Link copied to clipboard
open fun format(format: String): String

Formats the name of the entity

Link copied to clipboard
open override fun formatTo(formatter: Formatter?, flags: Int, width: Int, precision: Int)

Formats the object using the provided {@link Formatter formatter}.

Link copied to clipboard
open suspend fun send(): CompletableDeferred<Message>

Sends the message.

Link copied to clipboard
open fun setContent(message: String): SendAble

Sets the content of the message.

Link copied to clipboard
open fun setEmbed(embed: Embed): SendAble

Sets the embed of the message.

Link copied to clipboard
open fun setEmbeds(vararg embeds: Embed): SendAble
open fun setEmbeds(embeds: List<Embed>): SendAble

Sets the embeds of the message.

Link copied to clipboard
open fun setFlag(flag: MessageFlag): SendAble

Set a message flag.

Link copied to clipboard
open fun setFlags(vararg flags: MessageFlag): SendAble
open fun setFlags(flags: List<MessageFlag>): SendAble

Sets the message flags.

Link copied to clipboard
open fun setTts(tts: Boolean): SendAble

Whether the message should be sent with text-to-speech.

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

Properties

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 channelGetter: ChannelGetter

The channel getter which gives access to the channels.

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 isDmChannel: Boolean

Weather the channel is a dm channel.

Link copied to clipboard
open override val isGuildChannel: Boolean

Weather the channel is a guild channel.

Link copied to clipboard
open override val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override var lastMessageId: GetterSnowFlake?

The channel's last message id.

Link copied to clipboard

The actual message builder instance.

Link copied to clipboard
open override var name: String
Link copied to clipboard
open override var recipient: User?

The recipient of the dm.

Link copied to clipboard
open val retrieveRecipient: CompletableDeferred<User>

Retrieves the recipient of the dm.

Link copied to clipboard
open override val type: ChannelType

Get the channel type.

Link copied to clipboard
open override val yde: YDE

The main YDE instance.