CreateMessageOptions
Documentation / @discordeno/types / CreateMessageOptions
Interface: CreateMessageOptions
Defined in: discordeno/message.ts:74
https://docs.discord.com/developers/resources/message#create-message-jsonform-params
Properties
allowedMentions?
optionalallowedMentions?:AllowedMentions
Defined in: discordeno/message.ts:84
Allowed mentions for the message
attachments?
optionalattachments?:Pick<DiscordAttachment,"id"|"description"|"filename">[]
Defined in: discordeno/message.ts:94
Attachment objects with filename and description
components?
optionalcomponents?:MessageComponents
Defined in: discordeno/message.ts:88
The components you would like to have sent in this message
content?
optionalcontent?:string
Defined in: discordeno/message.ts:76
The message contents (up to 2000 characters)
embeds?
optionalembeds?:object[]
Defined in: discordeno/message.ts:82
Embedded rich content (up to 6000 characters)
author?
optionalauthor?:object
author.iconUrl?
optionaliconUrl?:string
author.name
name:
string
author.proxyIconUrl?
optionalproxyIconUrl?:string
author.url?
optionalurl?:string
color?
optionalcolor?:number
description?
optionaldescription?:string
fields?
optionalfields?:object[]
footer?
optionalfooter?:object
footer.iconUrl?
optionaliconUrl?:string
footer.proxyIconUrl?
optionalproxyIconUrl?:string
footer.text
text:
string
image?
optionalimage?:object
image.height?
optionalheight?:number
image.proxyUrl?
optionalproxyUrl?:string
image.url
url:
string
image.width?
optionalwidth?:number
provider?
optionalprovider?:object
provider.name?
optionalname?:string
provider.url?
optionalurl?:string
thumbnail?
optionalthumbnail?:object
thumbnail.height?
optionalheight?:number
thumbnail.proxyUrl?
optionalproxyUrl?:string
thumbnail.url
url:
string
thumbnail.width?
optionalwidth?:number
timestamp?
optionaltimestamp?:string
title?
optionaltitle?:string
type?
optionaltype?:EmbedTypes
url?
optionalurl?:string
video?
optionalvideo?:object
video.height?
optionalheight?:number
video.proxyUrl?
optionalproxyUrl?:string
video.url?
optionalurl?:string
video.width?
optionalwidth?:number
enforceNonce?
optionalenforceNonce?:boolean
Defined in: discordeno/message.ts:105
If true and nonce is present, it will be checked for uniqueness in the past few minutes. If another message was created by the same author with the same nonce, that message will be returned and no new message will be created.
files?
optionalfiles?:FileContent[]
Defined in: discordeno/message.ts:92
The contents of the files being sent
flags?
readonlyoptionalflags?:number
Defined in: discordeno/message.ts:103
Message flags combined as a bitfield
Only SUPPRESS_EMBEDS, SUPPRESS_NOTIFICATIONS, IS_VOICE_MESSAGE, and IS_COMPONENTS_V2 can be set
See
messageReference?
optionalmessageReference?:DiscordenoMessageReference
Defined in: discordeno/message.ts:86
Include to make your message a reply or a forward
nonce?
optionalnonce?:string|number
Defined in: discordeno/message.ts:78
Can be used to verify a message was sent (up to 25 characters). Value will appear in the Message Create event.
poll?
optionalpoll?:CreatePoll
Defined in: discordeno/message.ts:107
A poll object
stickerIds?
optionalstickerIds?:BigString[]
Defined in: discordeno/message.ts:90
IDs of up to 3 stickers in the server to send in the message
tts?
optionaltts?:boolean
Defined in: discordeno/message.ts:80
true if this is a TTS message