Skip to content

EditMessageInput

Defined in: bot/bot.type.ts:374

What PATCH /channels/{id}/messages/{id} takes. A field left out is left alone.

optional allowed_mentions?: object

Defined in: bot/bot.type.ts:378

Defaults to no mentions, so editing in a pasted @everyone cannot ping anyone.

optional parse?: ("roles" | "users" | "everyone")[]

Which mention types Discord may resolve into pings.

optional roles?: string[]

Ids of the roles that may be pinged.

optional users?: string[]

Ids of the users that may be pinged.


optional content?: string

Defined in: bot/bot.type.ts:376

The new message text. Left out, the message keeps its text (a flags-only edit).


optional flags?: number

Defined in: bot/bot.type.ts:380

Message flags; see MessageFlag. Left out, the message keeps the flags it has.