import { MessageResponse } from "@speakeasy-sdks/discord/models/components";
let value: MessageResponse = {
content: "<value>",
mentions: [
{
id: "<value>",
username: "Roselyn_Kassulke",
discriminator: "<value>",
publicFlags: 384382,
flags: 437587,
},
],
mentionRoles: ["<value>"],
attachments: [],
embeds: [],
timestamp: new Date("2022-11-23T02:21:00.924Z"),
flags: 891773,
components: [],
id: "<value>",
channelId: "<value>",
author: {
id: "<value>",
username: "Anahi38",
discriminator: "<value>",
publicFlags: 477665,
flags: 791725,
},
pinned: false,
mentionEveryone: false,
tts: false,
};
Field | Type | Required | Description |
---|---|---|---|
type |
number | ✔️ | N/A |
content |
string | ✔️ | N/A |
mentions |
components.UserResponse[] | ✔️ | N/A |
mentionRoles |
string[] | ✔️ | N/A |
attachments |
components.MessageAttachmentResponse[] | ✔️ | N/A |
embeds |
components.MessageEmbedResponse[] | ✔️ | N/A |
timestamp |
Date | ✔️ | N/A |
editedTimestamp |
Date | ➖ | N/A |
flags |
number | ✔️ | N/A |
components |
components.MessageResponseComponents[] | ✔️ | N/A |
resolved |
components.ResolvedObjectsResponse | ➖ | N/A |
stickers |
components.Stickers[] | ➖ | N/A |
stickerItems |
components.MessageStickerItemResponse[] | ➖ | N/A |
id |
string | ✔️ | N/A |
channelId |
string | ✔️ | N/A |
author |
components.UserResponse | ✔️ | N/A |
pinned |
boolean | ✔️ | N/A |
mentionEveryone |
boolean | ✔️ | N/A |
tts |
boolean | ✔️ | N/A |
call |
components.MessageCallResponse | ➖ | N/A |
activity |
components.MessageActivityResponse | ➖ | N/A |
application |
components.BasicApplicationResponse | ➖ | N/A |
applicationId |
string | ➖ | N/A |
interaction |
components.MessageInteractionResponse | ➖ | N/A |
nonce |
components.Nonce | ➖ | N/A |
webhookId |
string | ➖ | N/A |
messageReference |
components.MessageReferenceResponse | ➖ | N/A |
thread |
components.ThreadResponse | ➖ | N/A |
mentionChannels |
components.MessageMentionChannelResponse[] | ➖ | N/A |
roleSubscriptionData |
components.MessageRoleSubscriptionDataResponse | ➖ | N/A |
purchaseNotification |
components.PurchaseNotificationResponse | ➖ | N/A |
position |
number | ➖ | N/A |
interactionMetadata |
components.InteractionMetadata | ➖ | N/A |
reactions |
components.MessageReactionResponse[] | ➖ | N/A |
referencedMessage |
components.BasicMessageResponse | ➖ | N/A |