CreateMessageOptions
@discordeno/bot • Docs
Documentation / @discordeno/bot / CreateMessageOptions
Interface: CreateMessageOptions
https://discord.com/developers/docs/resources/channel#create-message-jsonform-params
Properties
allowedMentions?
optional
allowedMentions:AllowedMentions
Allowed mentions for the message
Defined in
packages/types/dist/types/discordeno.d.ts:14
attachments?
optional
attachments:Pick
<object
,"id"
> &Omit
<Partial
<object
>,"id"
>[]
Defined in
packages/types/dist/types/discordeno.d.ts:31
components?
optional
components:MessageComponents
The components you would like to have sent in this message
Defined in
packages/types/dist/types/discordeno.d.ts:35
content?
optional
content:string
The message contents (up to 2000 characters)
Defined in
packages/types/dist/types/discordeno.d.ts:6
embeds?
optional
embeds:object
[]
Embedded rich
content (up to 6000 characters)
Defined in
packages/types/dist/types/discordeno.d.ts:12
enforceNonce?
optional
enforceNonce:boolean
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.
Defined in
packages/types/dist/types/discordeno.d.ts:41
files?
optional
files:FileContent
[]
The contents of the files being sent
Defined in
packages/types/dist/types/discordeno.d.ts:33
flags?
optional
flags:MessageFlags
Message flags combined as a bitfield, only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set
Defined in
packages/types/dist/types/discordeno.d.ts:39
messageReference?
optional
messageReference:object
Include to make your message a reply or a forward
channelId?
optional
channelId:BigString
id of the originating message's channel
Note: channel_id
is optional when creating a reply, but will always be present when receiving an event/response that includes this data model.
failIfNotExists
failIfNotExists:
boolean
When sending, whether to error if the referenced message doesn't exist instead of sending as a normal (non-reply) message, default true
guildId?
optional
guildId:BigString
id of the originating message's guild
messageId?
optional
messageId:BigString
id of the originating message
type?
optional
type:DiscordMessageReferenceType
Type of reference
Defined in
packages/types/dist/types/discordeno.d.ts:16
nonce?
optional
nonce:string
|number
Can be used to verify a message was sent (up to 25 characters). Value will appear in the Message Create event.
Defined in
packages/types/dist/types/discordeno.d.ts:8
poll?
optional
poll:CreatePoll
A poll object
Defined in
packages/types/dist/types/discordeno.d.ts:43
stickerIds?
optional
stickerIds: [BigString
] | [BigString
,BigString
] | [BigString
,BigString
,BigString
]
IDs of up to 3 stickers in the server to send in the message
Defined in
packages/types/dist/types/discordeno.d.ts:37
tts?
optional
tts:boolean
true if this is a TTS message
Defined in
packages/types/dist/types/discordeno.d.ts:10