c

ackcord.data.raw

RawMessage

case class RawMessage(id: MessageId, channelId: TextChannelId, guildId: Option[GuildId], author: Author[_], member: Option[PartialRawGuildMember], content: String, timestamp: OffsetDateTime, editedTimestamp: Option[OffsetDateTime], tts: Boolean, mentionEveryone: Boolean, mentions: Seq[User], mentionRoles: Seq[RoleId], mentionChannels: Option[Seq[ChannelMention]], attachments: Seq[Attachment], embeds: Seq[ReceivedEmbed], reactions: Option[Seq[Reaction]], nonce: Option[Either[Long, String]], pinned: Boolean, type: MessageType, activity: Option[RawMessageActivity], application: Option[PartialApplication], applicationId: Option[ApplicationId], messageReference: Option[MessageReference], flags: Option[MessageFlags], stickers: Option[Seq[RawSticker]], stickerItems: Option[Seq[StickerItem]], referencedMessage: Option[RawMessage], interaction: Option[MessageInteraction], components: Option[Seq[ActionRow]], thread: Option[RawChannel]) extends Product with Serializable

A raw message before going through the cache.

id

The id of the message.

channelId

The channel this message was sent to.

guildId

The guild this message was sent to. Can me missing.

author

The author that sent this message.

member

The guild member user that sent this message. Can be missing.

content

The content of this message.

timestamp

The timestamp this message was created.

editedTimestamp

The timestamp this message was last edited.

tts

If this message is has text-to-speech enabled.

mentionEveryone

If this message mentions everyone.

mentions

All the users this message mentions.

mentionRoles

All the roles this message mentions.

mentionChannels

Potentially channels mentioned in the message. Only used for cross posted public channels so far.

attachments

All the attachments of this message.

embeds

All the embeds of this message.

reactions

All the reactions on this message.

nonce

A nonce for this message.

pinned

If this message is pinned.

activity

Sent with rich presence chat embeds.

application

Sent with rich presence chat embeds.

applicationId

If an message is a response to an interaction, then this is the id of the interaction's application.

messageReference

Data sent with a crossposts and replies.

flags

Extra features of the message.

stickers

Stickers sent with the message.

referencedMessage

Message associated with the message reference.

interaction

Sent if the message is a response to an Interaction.

Source
rawData.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RawMessage
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RawMessage(id: MessageId, channelId: TextChannelId, guildId: Option[GuildId], author: Author[_], member: Option[PartialRawGuildMember], content: String, timestamp: OffsetDateTime, editedTimestamp: Option[OffsetDateTime], tts: Boolean, mentionEveryone: Boolean, mentions: Seq[User], mentionRoles: Seq[RoleId], mentionChannels: Option[Seq[ChannelMention]], attachments: Seq[Attachment], embeds: Seq[ReceivedEmbed], reactions: Option[Seq[Reaction]], nonce: Option[Either[Long, String]], pinned: Boolean, type: MessageType, activity: Option[RawMessageActivity], application: Option[PartialApplication], applicationId: Option[ApplicationId], messageReference: Option[MessageReference], flags: Option[MessageFlags], stickers: Option[Seq[RawSticker]], stickerItems: Option[Seq[StickerItem]], referencedMessage: Option[RawMessage], interaction: Option[MessageInteraction], components: Option[Seq[ActionRow]], thread: Option[RawChannel])

    id

    The id of the message.

    channelId

    The channel this message was sent to.

    guildId

    The guild this message was sent to. Can me missing.

    author

    The author that sent this message.

    member

    The guild member user that sent this message. Can be missing.

    content

    The content of this message.

    timestamp

    The timestamp this message was created.

    editedTimestamp

    The timestamp this message was last edited.

    tts

    If this message is has text-to-speech enabled.

    mentionEveryone

    If this message mentions everyone.

    mentions

    All the users this message mentions.

    mentionRoles

    All the roles this message mentions.

    mentionChannels

    Potentially channels mentioned in the message. Only used for cross posted public channels so far.

    attachments

    All the attachments of this message.

    embeds

    All the embeds of this message.

    reactions

    All the reactions on this message.

    nonce

    A nonce for this message.

    pinned

    If this message is pinned.

    activity

    Sent with rich presence chat embeds.

    application

    Sent with rich presence chat embeds.

    applicationId

    If an message is a response to an interaction, then this is the id of the interaction's application.

    messageReference

    Data sent with a crossposts and replies.

    flags

    Extra features of the message.

    stickers

    Stickers sent with the message.

    referencedMessage

    Message associated with the message reference.

    interaction

    Sent if the message is a response to an Interaction.

Value Members

  1. val activity: Option[RawMessageActivity]
  2. val application: Option[PartialApplication]
  3. val applicationId: Option[ApplicationId]
  4. val attachments: Seq[Attachment]
  5. val author: Author[_]
  6. val channelId: TextChannelId
  7. val components: Option[Seq[ActionRow]]
  8. val content: String
  9. val editedTimestamp: Option[OffsetDateTime]
  10. val embeds: Seq[ReceivedEmbed]
  11. val flags: Option[MessageFlags]
  12. val guildId: Option[GuildId]
  13. val id: MessageId
  14. val interaction: Option[MessageInteraction]
  15. val member: Option[PartialRawGuildMember]
  16. val mentionChannels: Option[Seq[ChannelMention]]
  17. val mentionEveryone: Boolean
  18. val mentionRoles: Seq[RoleId]
  19. val mentions: Seq[User]
  20. val messageReference: Option[MessageReference]
  21. val nonce: Option[Either[Long, String]]
  22. val pinned: Boolean
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. val reactions: Option[Seq[Reaction]]
  25. val referencedMessage: Option[RawMessage]
  26. val stickerItems: Option[Seq[StickerItem]]
  27. val stickers: Option[Seq[RawSticker]]
  28. val thread: Option[RawChannel]
  29. val timestamp: OffsetDateTime
  30. def toMessage: Message

    Convert this to a normal message.

  31. val tts: Boolean
  32. val type: MessageType