Expand description
Messages: their content, embeds, attachments, reactions, references and everything else attached to them.
Structs§
- Allowed
Mentions - Which mentions of a message notify their targets, when sending.
- Attachment
- A file attached to a message.
- Attachment
Flags - Flags of an attachment.
- Attachment
Request - An attachment in a create or edit request:
a new file uploaded with the request (
files[n]), or an existing attachment to keep. - Channel
Mention - A channel mentioned in a crossposted message.
- Command
Metadata - The metadata of an application command interaction.
- Component
Metadata - 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).
- Embed
Author - The author of an embed.
- Embed
Field - A field of an embed.
- Embed
Flags - Flags of an embed.
- Embed
Footer - The footer of an embed.
- Embed
Image - The image or thumbnail of an embed.
- Embed
Media Flags - Flags of an embed’s image, thumbnail or video.
- Embed
Provider - The provider of an embed, e.g. the website of a link preview.
- Embed
Video - The video of an embed.
- Mention
- A user mentioned in a
Message(D-060). - Message
- A message sent in a channel.
- Message
Activity - The Rich Presence activity of a Rich Presence chat embed.
- Message
Call - The call in a
private channel that a
Callmessage is about. - Message
Flags - Flags of a message.
- Message
Pin - A pinned message
(
GET /channels/{channel.id}/messages/pins). - Message
Reference - A reference from one message to another: a reply or a forward.
- Message
Snapshot - A forwarded message at the time it was forwarded.
- Modal
Submit Metadata - The metadata of a modal submit interaction.
- Reaction
- A reaction to a message: one emoji and how often it was used.
- Reaction
Count Details - The count of a reaction, split into normal and super (“burst”) reactions.
- Role
Subscription Data - The role subscription
a
RoleSubscriptionPurchasemessage announces. - Shared
Client Theme - A client theme shared through a message.
- Snapshot
Message - The fields of a forwarded message kept in a
MessageSnapshot: a partialMessage(D-051). - Unknown
Metadata - The metadata of an interaction type this version of the library does not know about: the fields every interaction metadata has.
Enums§
- Allowed
Mention Type - An allowed mention type.
- Attachment
Request Id - The
idof anAttachmentRequest: the indexnof a file uploaded asfiles[n], or the ID of an existing attachment. - Base
Theme - The mode of a shared client theme.
- Embed
Type - The type of an embed.
- Interaction
Metadata - Metadata about the interaction a message was sent for: its ID, who triggered it and the installations that authorized it.
- Message
Activity Type - The type of a message activity.
- Message
Reference Type - The type of a message reference.
- Message
Type - The type of a message.
- Nonce
- The nonce a sender attached to a message: an integer or a string (up to 25 characters).
- Reaction
Type - The kind of a reaction: a normal reaction or a super reaction.
- Referenced
Message - The message a reply (or thread starter, or context menu command message) refers to (D-061).