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>[T]>
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.
NameTypeOptionalDescription
optionsAwaitMessageCollectorOptionsParams<T, Cached>YesOptions to pass to the internal collector
createMessageComponentCollector(options?):InteractionCollector<MappedInteractionTypes<Cached>[T]>
Creates a message component interaction collector
NameTypeOptionalDescription
optionsMessageCollectorOptionsParams<T, 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.