Class

ackcord.data

Message

Related Doc: package data

Permalink

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])

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val activity: Option[MessageActivity]

    Permalink
  5. val application: Option[MessageApplication]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val attachment: Seq[Attachment]

    Permalink

    All the attachments of this message.

  8. val authorId: RawSnowflake

    Permalink

    The id of the author that sent this message.

  9. def authorUser[F[_]](implicit c: CacheSnapshot[F], F: Applicative[F]): OptionT[F, User]

    Permalink

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

  10. def authorUserId: Option[UserId]

    Permalink
  11. val channelId: ChannelId

    Permalink

    The channel this message was sent to.

    The channel this message was sent to.

    Definition Classes
    MessageGetTChannel
  12. def channelMentions: Seq[ChannelId]

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val content: String

    Permalink

    The content of this message.

  15. def dmChannel[F[_]](implicit snapshot: CacheSnapshot[F]): OptionT[F, DMChannel]

    Permalink

    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]

    Permalink

    The timestamp this message was last edited.

  17. val embeds: Seq[ReceivedEmbed]

    Permalink

    All the embeds of this message.

  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatMentions[F[_]](implicit c: CacheSnapshot[F], F: Monad[F]): F[String]

    Permalink

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

  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def guild[F[_]](implicit c: CacheSnapshot[F], F: Monad[F]): OptionT[F, Guild]

    Permalink

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

  23. val guildId: Option[GuildId]

    Permalink

    The guild this message was sent to.

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

  24. val id: MessageId

    Permalink

    The id of the message.

  25. val isAuthorUser: Boolean

    Permalink

    If the author of this message was a user.

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val member: Option[GuildMember]

    Permalink

    The guild member user that sent this message.

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

  28. val mentionEveryone: Boolean

    Permalink

    If this message mentions everyone.

  29. val mentionRoles: Seq[RoleId]

    Permalink

    All the roles this message mentions.

  30. val mentions: Seq[UserId]

    Permalink

    All the users this message mentions.

  31. val messageType: MessageType

    Permalink

    The message type

  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. val nonce: Option[RawSnowflake]

    Permalink

    A nonce for this message.

  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. val pinned: Boolean

    Permalink

    If this message is pinned.

  37. val reactions: Seq[Reaction]

    Permalink

    All the reactions on this message.

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def tGuildChannel[F[_]](guildId: GuildId)(implicit snapshot: CacheSnapshot[F], F: Functor[F]): OptionT[F, TGuildChannel]

    Permalink

    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[F[_]](implicit snapshot: CacheSnapshot[F], F: Functor[F]): OptionT[F, TGuildChannel]

    Permalink

    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

    Permalink

    The timestamp this message was created.

  42. val tts: Boolean

    Permalink

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

  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GetTChannel

Inherited from AnyRef

Inherited from Any

Ungrouped