case class SparseMessage(id: MessageId, channelId: TextChannelId, authorId: RawSnowflake, isAuthorUser: Boolean, authorUsername: String, content: String, timestamp: OffsetDateTime, editedTimestamp: Option[OffsetDateTime], tts: Boolean, mentionEveryone: Boolean, mentions: Seq[UserId], mentionChannels: Seq[ChannelMention], attachments: Seq[Attachment], embeds: Seq[ReceivedEmbed], reactions: Seq[Reaction], nonce: Option[String], pinned: Boolean, messageType: MessageType, activity: Option[MessageActivity], application: Option[PartialApplication], applicationId: Option[ApplicationId], messageReference: Option[MessageReference], flags: Option[MessageFlags], stickers: Option[Seq[Sticker]], stickerItems: Option[Seq[StickerItem]], referencedMessage: Option[Message], interaction: Option[MessageInteraction], components: Seq[ActionRow], threadId: Option[ThreadGuildChannelId]) extends Message with Product with Serializable
A message missing the guild info. This can be because it was sent to a DM channel, or because it was retrieved later through a REST call. Note that a message can still be sent to a guild, but be missing the guild info. For example if it's gotten from a REST request.
- Source
- message.scala
- Alphabetic
- By Inheritance
- SparseMessage
- Serializable
- Product
- Equals
- Message
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SparseMessage(id: MessageId, channelId: TextChannelId, authorId: RawSnowflake, isAuthorUser: Boolean, authorUsername: String, content: String, timestamp: OffsetDateTime, editedTimestamp: Option[OffsetDateTime], tts: Boolean, mentionEveryone: Boolean, mentions: Seq[UserId], mentionChannels: Seq[ChannelMention], attachments: Seq[Attachment], embeds: Seq[ReceivedEmbed], reactions: Seq[Reaction], nonce: Option[String], pinned: Boolean, messageType: MessageType, activity: Option[MessageActivity], application: Option[PartialApplication], applicationId: Option[ApplicationId], messageReference: Option[MessageReference], flags: Option[MessageFlags], stickers: Option[Seq[Sticker]], stickerItems: Option[Seq[StickerItem]], referencedMessage: Option[Message], interaction: Option[MessageInteraction], components: Seq[ActionRow], threadId: Option[ThreadGuildChannelId])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val activity: Option[MessageActivity]
Sent with rich presence chat embeds.
Sent with rich presence chat embeds.
- Definition Classes
- SparseMessage → Message
- val application: Option[PartialApplication]
Sent with rich presence chat embeds.
Sent with rich presence chat embeds.
- Definition Classes
- SparseMessage → Message
- val applicationId: Option[ApplicationId]
If an message is a response to an interaction, then this is the id of the interaction's application.
If an message is a response to an interaction, then this is the id of the interaction's application.
- Definition Classes
- SparseMessage → Message
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attachments: Seq[Attachment]
All the attachments of this message.
All the attachments of this message.
- Definition Classes
- SparseMessage → Message
- val authorId: RawSnowflake
The id of the author that sent this message.
The id of the author that sent this message.
- Definition Classes
- SparseMessage → Message
- def authorUser(implicit c: CacheSnapshot): Option[User]
Gets the author of this message, ignoring the case where the author might be a webhook.
Gets the author of this message, ignoring the case where the author might be a webhook.
- Definition Classes
- Message
- def authorUserId: Option[UserId]
If the author is a user, their user id.
If the author is a user, their user id.
- Definition Classes
- Message
- val authorUsername: String
The username of the author.
The username of the author.
- Definition Classes
- SparseMessage → Message
- val channelId: TextChannelId
The channel this message was sent to.
The channel this message was sent to.
- Definition Classes
- SparseMessage → Message
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val components: Seq[ActionRow]
The extra interaction components added to this message.
The extra interaction components added to this message.
- Definition Classes
- SparseMessage → Message
- val content: String
The content of this message.
The content of this message.
- Definition Classes
- SparseMessage → Message
- val editedTimestamp: Option[OffsetDateTime]
The timestamp this message was last edited.
The timestamp this message was last edited.
- Definition Classes
- SparseMessage → Message
- val embeds: Seq[ReceivedEmbed]
All the embeds of this message.
All the embeds of this message.
- Definition Classes
- SparseMessage → Message
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val flags: Option[MessageFlags]
Extra features of the message.
Extra features of the message.
- Definition Classes
- SparseMessage → Message
- def formatMentions(implicit c: CacheSnapshot): String
Expands all mentions in the message.
Expands all mentions in the message.
- Definition Classes
- SparseMessage → Message
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def guild(implicit c: CacheSnapshot): Option[GatewayGuild]
Get the guild this message was sent to.
Get the guild this message was sent to.
- Definition Classes
- SparseMessage → Message
- def guildMember(implicit c: CacheSnapshot): Option[GuildMember]
Get the guild member of the one that sent this message.
Get the guild member of the one that sent this message.
- Definition Classes
- SparseMessage → Message
- val id: MessageId
The id of the message.
The id of the message.
- Definition Classes
- SparseMessage → Message
- val interaction: Option[MessageInteraction]
Sent if the message is a response to an Interaction
Sent if the message is a response to an Interaction
- Definition Classes
- SparseMessage → Message
- val isAuthorUser: Boolean
True if the author is a user.
True if the author is a user.
- Definition Classes
- SparseMessage → Message
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mentionChannels: Seq[ChannelMention]
Potentially channels mentioned in the message.
Potentially channels mentioned in the message. Only used for cross posted public channels so far.
- Definition Classes
- SparseMessage → Message
- val mentionEveryone: Boolean
If this message mentions everyone.
If this message mentions everyone.
- Definition Classes
- SparseMessage → Message
- val mentions: Seq[UserId]
All the users this message mentions.
All the users this message mentions.
- Definition Classes
- SparseMessage → Message
- val messageReference: Option[MessageReference]
Data sent with a crossposts and replies.
Data sent with a crossposts and replies.
- Definition Classes
- SparseMessage → Message
- val messageType: MessageType
The message type.
The message type.
- Definition Classes
- SparseMessage → Message
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nonce: Option[String]
A nonce for this message.
A nonce for this message.
- Definition Classes
- SparseMessage → Message
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val pinned: Boolean
If this message is pinned.
If this message is pinned.
- Definition Classes
- SparseMessage → Message
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val reactions: Seq[Reaction]
All the reactions on this message.
All the reactions on this message.
- Definition Classes
- SparseMessage → Message
- val referencedMessage: Option[Message]
Message associated with the message reference.
Message associated with the message reference.
- Definition Classes
- SparseMessage → Message
- val stickerItems: Option[Seq[StickerItem]]
Stickers sent with the message.
Stickers sent with the message.
- Definition Classes
- SparseMessage → Message
- val stickers: Option[Seq[Sticker]]
Stickers sent with the message.
Stickers sent with the message. (deprecated)
- Definition Classes
- SparseMessage → Message
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val threadId: Option[ThreadGuildChannelId]
The thread that was started from this message.
The thread that was started from this message.
- Definition Classes
- SparseMessage → Message
- val timestamp: OffsetDateTime
The timestamp this message was created.
The timestamp this message was created.
- Definition Classes
- SparseMessage → Message
- val tts: Boolean
If this message is has text-to-speech enabled.
If this message is has text-to-speech enabled.
- Definition Classes
- SparseMessage → Message
- def updateButton(identifier: String, f: (TextButton) => Button): SparseMessage
- Definition Classes
- SparseMessage → Message
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])