InteractionResponse

export class InteractionResponse<Cached extends boolean = boolean>
export class InteractionResponse<Cached extends boolean = boolean>
Represents an interaction's response
NameConstraintsOptionalDefaultDescription
CachedbooleanYesbooleanNone
client:Client
Readonly
createdAt:Date
The time the interaction response was created at
Readonly
createdTimestamp:number
The timestamp the interaction response was created at
The id of the original interaction response
interaction:Interaction<WrapBooleanCache<Cached>>
The interaction associated with the interaction response
awaitMessageComponent(options?):Promise<MappedInteractionTypes<Cached>[ComponentType]>
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.
NameTypeOptionalDescription
optionsAwaitMessageCollectorOptionsParams<ComponentType, Cached>YesOptions to pass to the internal collector
createMessageComponentCollector(options?):InteractionCollector<MappedInteractionTypes<Cached>[ComponentType]>
Creates a message component interaction collector
NameTypeOptionalDescription
optionsMessageCollectorOptionsParams<ComponentType, Cached>YesOptions to send to the collector
delete():Promise<void>
Deletes the response.
edit(options):Promise<Message>
Edits the response.
NameTypeOptionalDescription
optionsstring | MessagePayload | WebhookMessageEditOptionsNoThe new options for the response.
fetch():Promise<Message>
Fetches the response as a Message object.