Skip to content
Interfacetypesv0.14.4

ReplyResponse

A ComponentsV2 reply. Discord's components-v2 flag forbids content, embeds, stickers, and poll, so a reply carries only components plus the v2-compatible allowedMentions and files.

interface ReplyResponse<TNative = never>

TNative

Extra file forms one transport accepts beyond ReplyFile. @seedcord/gateway binds the discord.js file forms and exports that as GatewayReplyResponse. A reply built from ReplyFile alone assigns to either transport.

TNative = never

allowedMentions

Which mentions written inside the components resolve into real pings.

readonly allowedMentions?: ReplyAllowedMentions

components

The component tree the reply renders from.

readonly components: V2Component[]

files

Attachments to upload. Under v2 each must be referenced by a thumbnail, media gallery, or file component, or it uploads hidden.

readonly files?: readonly (ReplyFile | TNative)[]