Nostrum v0.4.0 Nostrum.Struct.Message View Source

Struct representing a Discord message.

Link to this section Summary

Types

The activity of the message. Sent with Rich Presence-related chat embeds.

The application of the message. Sent with Rich Presence-related chat embeds.

List of attached files in the message

The user struct of the author

The id of the channel

The content of the message

When the message was edited

List of embedded content in the message

The id of the guild

The id of the message

Partial Guild Member object received with the Message Create event if message came from a guild channel.

Whether this messsage mentions everyone

List of roles ids mentioned in the message

List of users mentioned in the message

Validates if a message was sent

Whether this message is pinned

Reactions to the message.

t()

When the message was sent

Whether this was a TTS message

If the message is generated by a webhook, this is the webhook's id.

Link to this section Types

The activity of the message. Sent with Rich Presence-related chat embeds.

The application of the message. Sent with Rich Presence-related chat embeds.

List of attached files in the message

The user struct of the author

The id of the channel

The content of the message

Link to this type

edited_timestamp() View Source
edited_timestamp() :: String.t() | nil

When the message was edited

List of embedded content in the message

The id of the guild

The id of the message

Partial Guild Member object received with the Message Create event if message came from a guild channel.

Link to this type

mention_everyone() View Source
mention_everyone() :: boolean()

Whether this messsage mentions everyone

Link to this type

mention_roles() View Source
mention_roles() :: [Nostrum.Snowflake.t()]

List of roles ids mentioned in the message

List of users mentioned in the message

Link to this type

nonce() View Source
nonce() :: String.t() | nil

Validates if a message was sent

Whether this message is pinned

Reactions to the message.

Link to this type

t() View Source
t() :: %Nostrum.Struct.Message{
  activity: activity(),
  application: application(),
  attachments: attachments(),
  author: author(),
  channel_id: channel_id(),
  content: content(),
  edited_timestamp: edited_timestamp(),
  embeds: embeds(),
  guild_id: guild_id(),
  id: id(),
  member: member(),
  mention_everyone: mention_everyone(),
  mention_roles: mention_roles(),
  mentions: mentions(),
  nonce: nonce(),
  pinned: pinned(),
  reactions: reactions(),
  timestamp: timestamp(),
  tts: tts(),
  type: type(),
  webhook_id: webhook_id()
}

Link to this type

timestamp() View Source
timestamp() :: String.t()

When the message was sent

Whether this was a TTS message

Type of message.

Link to this type

webhook_id() View Source
webhook_id() :: Nostrum.Snowflake.t() | nil

If the message is generated by a webhook, this is the webhook's id.