Skip to main content

Module message

Module message 

Source
Expand description

Messages: their content, embeds, attachments, reactions, references and everything else attached to them.

Structs§

AllowedMentions
Which mentions of a message notify their targets, when sending.
Attachment
A file attached to a message.
AttachmentFlags
Flags of an attachment.
AttachmentRequest
An attachment in a create or edit request: a new file uploaded with the request (files[n]), or an existing attachment to keep.
ChannelMention
A channel mentioned in a crossposted message.
CommandMetadata
The metadata of an application command interaction.
ComponentMetadata
The metadata of a message component interaction.
Embed
An embed: a rich content block (link previews, images, videos, or a bot’s custom “rich” embed).
EmbedAuthor
The author of an embed.
EmbedField
A field of an embed.
EmbedFlags
Flags of an embed.
EmbedFooter
The footer of an embed.
EmbedImage
The image or thumbnail of an embed.
EmbedMediaFlags
Flags of an embed’s image, thumbnail or video.
EmbedProvider
The provider of an embed, e.g. the website of a link preview.
EmbedVideo
The video of an embed.
Mention
A user mentioned in a Message (D-060).
Message
A message sent in a channel.
MessageActivity
The Rich Presence activity of a Rich Presence chat embed.
MessageCall
The call in a private channel that a Call message is about.
MessageFlags
Flags of a message.
MessagePin
A pinned message (GET /channels/{channel.id}/messages/pins).
MessageReference
A reference from one message to another: a reply or a forward.
MessageSnapshot
A forwarded message at the time it was forwarded.
ModalSubmitMetadata
The metadata of a modal submit interaction.
Reaction
A reaction to a message: one emoji and how often it was used.
ReactionCountDetails
The count of a reaction, split into normal and super (“burst”) reactions.
RoleSubscriptionData
The role subscription a RoleSubscriptionPurchase message announces.
SharedClientTheme
A client theme shared through a message.
SnapshotMessage
The fields of a forwarded message kept in a MessageSnapshot: a partial Message (D-051).
UnknownMetadata
The metadata of an interaction type this version of the library does not know about: the fields every interaction metadata has.

Enums§

AllowedMentionType
An allowed mention type.
AttachmentRequestId
The id of an AttachmentRequest: the index n of a file uploaded as files[n], or the ID of an existing attachment.
BaseTheme
The mode of a shared client theme.
EmbedType
The type of an embed.
InteractionMetadata
Metadata about the interaction a message was sent for: its ID, who triggered it and the installations that authorized it.
MessageActivityType
The type of a message activity.
MessageReferenceType
The type of a message reference.
MessageType
The type of a message.
Nonce
The nonce a sender attached to a message: an integer or a string (up to 25 characters).
ReactionType
The kind of a reaction: a normal reaction or a super reaction.
ReferencedMessage
The message a reply (or thread starter, or context menu command message) refers to (D-061).