Skip to content
Interfacecorev0.10.0

InteractionFaultSource

A fault that came from a discord interaction, JSON-safe for a webhook payload.

interface InteractionFaultSource

channelId

Channel the interaction came from, null when unavailable.

readonly channelId: string | null

command

Slash or context-menu command name, null for component and modal interactions.

readonly command: string | null

customId

Component or modal customId, null for slash and context-menu interactions.

readonly customId: string | null

guildId

Guild the interaction came from, null in DMs.

readonly guildId: string | null

interactionId

readonly interactionId: string

interactionKind

readonly interactionKind: 'slash' | 'context-menu' | 'button' | 'select' | 'modal'

kind

readonly kind: 'interaction'

raw

The raw interaction, made JSON-safe at serialization with filterCirculars.

readonly raw: unknown