CreateMessageInput
Defined in: bot/bot.type.ts:501
What POST /channels/{id}/messages takes.
Properties
Section titled “Properties”allowed_mentions?
Section titled “allowed_mentions?”
optionalallowed_mentions?:object
Defined in: bot/bot.type.ts:511
Defaults to no mentions, so a pasted @everyone cannot ping anyone.
parse?
Section titled “parse?”
optionalparse?: ("roles"|"users"|"everyone")[]
Which mention types Discord may resolve into pings.
roles?
Section titled “roles?”
optionalroles?:string[]
Ids of the roles that may be pinged.
users?
Section titled “users?”
optionalusers?:string[]
Ids of the users that may be pinged.
content
Section titled “content”content:
string
Defined in: bot/bot.type.ts:503
The message text.
enforce_nonce?
Section titled “enforce_nonce?”
optionalenforce_nonce?:boolean
Defined in: bot/bot.type.ts:507
Turns on the nonce de-duplication for nonce.
flags?
Section titled “flags?”
optionalflags?:number
Defined in: bot/bot.type.ts:509
Message flags; see MessageFlag.
nonce?
Section titled “nonce?”
optionalnonce?:string|number
Defined in: bot/bot.type.ts:505
With enforce_nonce, Discord drops a repeat of the same nonce, so a retry after a lost response cannot post twice.