Elixir v0.2.1 Nostrum.Struct.Message

Struct representing a Discord message.

Summary

Types

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 message

Whether this messsage mentions everyone

List of roles mentioned in the message

List of users mentioned in the message

Validates if a message was sent

Whether this message is pinned

t()

When the message was sent

Whether this was a TTS message

Message type

Types

attachments()

List of attached files in the message

author()
author() :: Nostrum.Struct.User.t

The user struct of the author

channel_id()
channel_id() :: integer

The id of the channel

content()
content() :: String.t

The content of the message

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

When the message was edited

embeds()
embeds() :: [map]

List of embedded content in the message

id()
id() :: integer

The id of the message

mention_everyone()
mention_everyone() :: boolean

Whether this messsage mentions everyone

mention_roles()
mention_roles() :: [Nostrum.Struct.Guild.Role.t]

List of roles mentioned in the message

mentions()
mentions() :: [Nostrum.Struct.User.t]

List of users mentioned in the message

nonce()
nonce() :: String.t

Validates if a message was sent

pinned()
pinned() :: boolean

Whether this message is pinned

t()
t() :: %Nostrum.Struct.Message{attachments: attachments, author: author, channel_id: channel_id, content: content, edited_timestamp: edited_timestamp, embeds: embeds, id: id, mention_everyone: mention_everyone, mention_roles: mention_roles, mentions: mentions, nonce: nonce, pinned: pinned, timestamp: timestamp, tts: tts, type: type}
timestamp()
timestamp() :: String.t

When the message was sent

tts()
tts() :: boolean

Whether this was a TTS message

type()
type() :: integer

Message type