Nostrum v0.4.1 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.
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
activity()
View Source
activity() :: Nostrum.Struct.Message.Activity.t() | nil
activity() :: Nostrum.Struct.Message.Activity.t() | nil
The activity of the message. Sent with Rich Presence-related chat embeds.
application()
View Source
application() :: Nostrum.Struct.Message.Application.t() | nil
application() :: Nostrum.Struct.Message.Application.t() | nil
The application of the message. Sent with Rich Presence-related chat embeds.
attachments()
View Source
attachments() :: [Nostrum.Struct.Message.Attachment.t()]
attachments() :: [Nostrum.Struct.Message.Attachment.t()]
List of attached files in the message
author()
View Source
author() :: Nostrum.Struct.User.t()
author() :: Nostrum.Struct.User.t()
The user struct of the author
channel_id()
View Source
channel_id() :: Nostrum.Snowflake.t()
channel_id() :: Nostrum.Snowflake.t()
The id of the channel
content()
View Source
content() :: String.t()
content() :: String.t()
The content of the message
edited_timestamp()
View Source
edited_timestamp() :: String.t() | nil
edited_timestamp() :: String.t() | nil
When the message was edited
embeds()
View Source
embeds() :: [Nostrum.Struct.Embed.t()]
embeds() :: [Nostrum.Struct.Embed.t()]
List of embedded content in the message
guild_id()
View Source
guild_id() :: Nostrum.Snowflake.t() | nil
guild_id() :: Nostrum.Snowflake.t() | nil
The id of the guild
id()
View Source
id() :: Nostrum.Snowflake.t()
id() :: Nostrum.Snowflake.t()
The id of the message
member()
View Source
member() :: Nostrum.Struct.Guild.Member.t() | nil
member() :: Nostrum.Struct.Guild.Member.t() | nil
Partial Guild Member object received with the Message Create event if message came from a guild channel.
mention_everyone()
View Source
mention_everyone() :: boolean()
mention_everyone() :: boolean()
Whether this messsage mentions everyone
mention_roles()
View Source
mention_roles() :: [Nostrum.Snowflake.t()]
mention_roles() :: [Nostrum.Snowflake.t()]
List of roles ids mentioned in the message
mentions()
View Source
mentions() :: [Nostrum.Struct.User.t()]
mentions() :: [Nostrum.Struct.User.t()]
List of users mentioned in the message
nonce()
View Source
nonce() :: String.t() | nil
nonce() :: String.t() | nil
Validates if a message was sent
pinned()
View Source
pinned() :: boolean()
pinned() :: boolean()
Whether this message is pinned
reactions()
View Source
reactions() :: [Nostrum.Struct.Message.Reaction.t()] | nil
reactions() :: [Nostrum.Struct.Message.Reaction.t()] | nil
Reactions to the message.
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()
}
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() }
timestamp()
View Source
timestamp() :: String.t()
timestamp() :: String.t()
When the message was sent
tts()
View Source
tts() :: boolean()
tts() :: boolean()
Whether this was a TTS message
type()
View Source
type() :: integer()
type() :: integer()
webhook_id()
View Source
webhook_id() :: Nostrum.Snowflake.t() | nil
webhook_id() :: Nostrum.Snowflake.t() | nil
If the message is generated by a webhook, this is the webhook's id.