EditMessageInput
Defined in: bot/bot.type.ts:374
What PATCH /channels/{id}/messages/{id} takes. A field left out is left alone.
Properties
Section titled “Properties”allowed_mentions?
Section titled “allowed_mentions?”
optionalallowed_mentions?:object
Defined in: bot/bot.type.ts:378
Defaults to no mentions, so editing in 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?”
optionalcontent?:string
Defined in: bot/bot.type.ts:376
The new message text. Left out, the message keeps its text (a flags-only edit).
flags?
Section titled “flags?”
optionalflags?:number
Defined in: bot/bot.type.ts:380
Message flags; see MessageFlag. Left out, the message keeps the flags it has.