class ReplySender extends BaseReplySender<
SentMessage,
GatewayFile
>Member visibility
Filter class members by access level.
ReplySender(
interaction: Repliables,
routeId: string,
bus: Bus
)Showing members with Protected visibility and higher.
routeId
protected readonly routeId: stringInherited from:BaseReplySender
defer()
Inherited from:BaseReplySender
deferUpdate()
Inherited from:BaseReplySender
delete()
Inherited from:BaseReplySender
edit()
async edit(
response: ReplyResponse<TNative> | string
): Promise<TMessage>Inherited from:BaseReplySender
followUp()
async followUp(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>Inherited from:BaseReplySender
protected guardModalSource(): voidremember()
protected remember(created: TMessage): TMessageInherited from:BaseReplySender
reply()
async reply(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>Inherited from:BaseReplySender
send()
Routes to the verb the current ack state permits. Every state has a route, so the illegal-ack throw is unreachable.
async send(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>Inherited from:BaseReplySender
serialize()
protected serialize(
response: ReplyResponse<TNative> | string
): SerializedReply<TNative>Inherited from:BaseReplySender
showModal()
Must be the initial response.
Inherited from:BaseReplySender
update()
After a deferUpdate the state stays deferred-update. Calling this again rewrites. The returned message is the source message, editable only through a bare update or edit. A targeted edit or delete of it throws the foreign-target error.
async update(
response: ReplyResponse<TNative> | string
): Promise<TMessage>Inherited from:BaseReplySender
protected async writeEditOriginal(
response: GatewayReplyResponse | string
): Promise<SentMessage>protected async writeEditTarget(
targetId: string,
response: GatewayReplyResponse | string
): Promise<SentMessage>protected async writeFollowUp(
response: GatewayReplyResponse | string,
opts?: SendOpts
): Promise<SentMessage>protected async writeModal(
data: APIModalInteractionResponseCallbackData
): Promise<void>protected async writeReply(
response: GatewayReplyResponse | string,
opts?: SendOpts
): Promise<SentMessage | undefined>protected async writeUpdate(
response: GatewayReplyResponse | string
): Promise<SentMessage | undefined>