Packages

c

ackcord.data

GuildGatewayMessage

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

A message sent with additional guild info. 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.

guildId

The guild this message was sent to.

isAuthorUser

If the author of this message was a user.

member

The guild member user that sent this message.

mentionRoles

All the roles this message mentions.

Source
message.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GuildGatewayMessage
  2. Serializable
  3. Product
  4. Equals
  5. Message
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

    guildId

    The guild this message was sent to.

    isAuthorUser

    If the author of this message was a user.

    member

    The guild member user that sent this message.

    mentionRoles

    All the roles this message mentions.

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]

    Sent with rich presence chat embeds.

    Sent with rich presence chat embeds.

    Definition Classes
    GuildGatewayMessageMessage
  5. val application: Option[MessageApplication]

    Sent with rich presence chat embeds.

    Sent with rich presence chat embeds.

    Definition Classes
    GuildGatewayMessageMessage
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val attachment: Seq[Attachment]

    All the attachments of this message.

    All the attachments of this message.

    Definition Classes
    GuildGatewayMessageMessage
  8. val authorId: RawSnowflake

    The id of the author that sent this message.

    The id of the author that sent this message.

    Definition Classes
    GuildGatewayMessageMessage
  9. 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
  10. 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
  11. val authorUsername: String

    The username of the author.

    The username of the author.

    Definition Classes
    GuildGatewayMessageMessage
  12. val channelId: TextGuildChannelId

    The channel this message was sent to.

    The channel this message was sent to.

    Definition Classes
    GuildGatewayMessageMessage
  13. def channelMentions: Seq[TextGuildChannelId]
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. val content: String

    The content of this message.

    The content of this message.

    Definition Classes
    GuildGatewayMessageMessage
  16. val editedTimestamp: Option[OffsetDateTime]

    The timestamp this message was last edited.

    The timestamp this message was last edited.

    Definition Classes
    GuildGatewayMessageMessage
  17. val embeds: Seq[ReceivedEmbed]

    All the embeds of this message.

    All the embeds of this message.

    Definition Classes
    GuildGatewayMessageMessage
  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. val flags: Option[MessageFlags]

    Extra features of the message.

    Extra features of the message.

    Definition Classes
    GuildGatewayMessageMessage
  21. def formatMentions(implicit c: CacheSnapshot): String

    Expands all mentions in the message.

    Expands all mentions in the message.

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

    Get the guild this message was sent to.

    Get the guild this message was sent to.

    Definition Classes
    GuildGatewayMessageMessage
  24. val guildId: GuildId
  25. 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
    GuildGatewayMessageMessage
  26. val id: MessageId

    The id of the message.

    The id of the message.

    Definition Classes
    GuildGatewayMessageMessage
  27. val isAuthorUser: Boolean

    True if the author is a user.

    True if the author is a user.

    Definition Classes
    GuildGatewayMessageMessage
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. val member: Option[GuildMember]
  30. 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
    GuildGatewayMessageMessage
  31. val mentionEveryone: Boolean

    If this message mentions everyone.

    If this message mentions everyone.

    Definition Classes
    GuildGatewayMessageMessage
  32. val mentionRoles: Seq[RoleId]
  33. val mentions: Seq[UserId]

    All the users this message mentions.

    All the users this message mentions.

    Definition Classes
    GuildGatewayMessageMessage
  34. val messageReference: Option[MessageReference]

    Data sent with a crosspost.

    Data sent with a crosspost.

    Definition Classes
    GuildGatewayMessageMessage
  35. val messageType: MessageType

    The message type.

    The message type.

    Definition Classes
    GuildGatewayMessageMessage
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. val nonce: Option[String]

    A nonce for this message.

    A nonce for this message.

    Definition Classes
    GuildGatewayMessageMessage
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. val pinned: Boolean

    If this message is pinned.

    If this message is pinned.

    Definition Classes
    GuildGatewayMessageMessage
  41. def productElementNames: Iterator[String]
    Definition Classes
    Product
  42. val reactions: Seq[Reaction]

    All the reactions on this message.

    All the reactions on this message.

    Definition Classes
    GuildGatewayMessageMessage
  43. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  44. val timestamp: OffsetDateTime

    The timestamp this message was created.

    The timestamp this message was created.

    Definition Classes
    GuildGatewayMessageMessage
  45. val tts: Boolean

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

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

    Definition Classes
    GuildGatewayMessageMessage
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Message

Inherited from AnyRef

Inherited from Any

Ungrouped