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
- Alphabetic
- By Inheritance
- Message
- Serializable
- Serializable
- Product
- Equals
- GetTChannel
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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]
- val application: Option[MessageApplication]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attachment: Seq[Attachment]
- val authorId: RawSnowflake
-
def
authorUser(implicit c: CacheSnapshot): Option[User]
Gets the author of this message, ignoring the case where the author might be a webhook.
- def authorUserId: Option[UserId]
-
val
channelId: ChannelId
- Definition Classes
- Message → GetTChannel
- def channelMentions: Seq[ChannelId]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val content: String
-
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
- val editedTimestamp: Option[OffsetDateTime]
- val embeds: Seq[ReceivedEmbed]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatMentions(implicit c: CacheSnapshot): String
Formats mentions in this message to their normal syntax with names.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
guild(implicit c: CacheSnapshot): Option[Guild]
Get the guild this message was sent to, if it was sent to a guild.
- val guildId: Option[GuildId]
- val id: MessageId
- val isAuthorUser: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val member: Option[GuildMember]
- val mentionEveryone: Boolean
- val mentionRoles: Seq[RoleId]
- val mentions: Seq[UserId]
- val messageType: MessageType
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nonce: Option[RawSnowflake]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pinned: Boolean
- val reactions: Seq[Reaction]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
-
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
- val timestamp: OffsetDateTime
- val tts: Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()