Packages

c

ackcord.data

Message

case class Message(id: MessageId, channelId: ChannelId, guildId: Option[GuildId], authorId: RawSnowflake, isAuthorUser: Boolean, member: Option[GuildMember], content: String, timestamp: OffsetDateTime, editedTimestamp: Option[OffsetDateTime], tts: Boolean, mentionEveryone: Boolean, mentions: Seq[UserId], mentionRoles: Seq[RoleId], attachment: Seq[Attachment], embeds: Seq[ReceivedEmbed], reactions: Seq[Reaction], nonce: Option[RawSnowflake], pinned: Boolean, messageType: MessageType, activity: Option[MessageActivity], application: Option[MessageApplication]) extends GetTChannel with Product with Serializable

A message sent to a channel.

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.

authorId

The id of the author that sent this message.

isAuthorUser

If the author of this message was a user.

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.

attachment

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.

messageType

The message type

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Message
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GetTChannel
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Message(id: MessageId, channelId: ChannelId, guildId: Option[GuildId], authorId: RawSnowflake, isAuthorUser: Boolean, member: Option[GuildMember], content: String, timestamp: OffsetDateTime, editedTimestamp: Option[OffsetDateTime], tts: Boolean, mentionEveryone: Boolean, mentions: Seq[UserId], mentionRoles: Seq[RoleId], attachment: Seq[Attachment], embeds: Seq[ReceivedEmbed], reactions: Seq[Reaction], nonce: Option[RawSnowflake], pinned: Boolean, messageType: MessageType, activity: Option[MessageActivity], application: Option[MessageApplication])

    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.

    authorId

    The id of the author that sent this message.

    isAuthorUser

    If the author of this message was a user.

    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.

    attachment

    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.

    messageType

    The message type

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val activity: Option[MessageActivity]
  5. val application: Option[MessageApplication]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val attachment: Seq[Attachment]
  8. val authorId: RawSnowflake
  9. def authorUser(implicit c: CacheSnapshot): Option[User]

    Gets the author of this message, ignoring the case where the author might be a webhook.

  10. def authorUserId: Option[UserId]
  11. val channelId: ChannelId
    Definition Classes
    MessageGetTChannel
  12. def channelMentions: Seq[ChannelId]
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  14. val content: String
  15. def dmChannel(implicit snapshot: CacheSnapshot): Option[DMChannel]

    Resolve the channelId of this object as a dm channel

    Resolve the channelId of this object as a dm channel

    Definition Classes
    GetTChannel
  16. val editedTimestamp: Option[OffsetDateTime]
  17. val embeds: Seq[ReceivedEmbed]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatMentions(implicit c: CacheSnapshot): String

    Formats mentions in this message to their normal syntax with names.

  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def guild(implicit c: CacheSnapshot): Option[Guild]

    Get the guild this message was sent to, if it was sent to a guild.

  23. val guildId: Option[GuildId]
  24. val id: MessageId
  25. val isAuthorUser: Boolean
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. val member: Option[GuildMember]
  28. val mentionEveryone: Boolean
  29. val mentionRoles: Seq[RoleId]
  30. val mentions: Seq[UserId]
  31. val messageType: MessageType
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. val nonce: Option[RawSnowflake]
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. val pinned: Boolean
  37. val reactions: Seq[Reaction]
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def tGuildChannel(guildId: GuildId)(implicit snapshot: CacheSnapshot): Option[TGuildChannel]

    Resolve the channelId of this object as a TGuildChannel using an provided guildId

    Resolve the channelId of this object as a TGuildChannel using an provided guildId

    Definition Classes
    GetTChannel
  40. def tGuildChannel(implicit snapshot: CacheSnapshot): Option[TGuildChannel]

    Resolve the channelId of this object as a TGuildChannel

    Resolve the channelId of this object as a TGuildChannel

    Definition Classes
    GetTChannel
  41. val timestamp: OffsetDateTime
  42. val tts: Boolean
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GetTChannel

Inherited from AnyRef

Inherited from Any

Ungrouped