Classcorev0.4.1
BaseReplySender
Tracks acknowledgement state and throws a translated SeedcordError on an illegal verb before any transport call. Every verb runs the legality check, calls the transport's wire writer, then updates the state and the ack trace. Each transport binds TMessage to its own created-message type and supplies the writers.
Member visibility
Filter class members by access level.
protected BaseReplySender(
routeId: string,
telemetry: ReplyTelemetry,
initialState?: AckState
)Showing members with Protected visibility and higher.
protected readonly routeId: stringpublic async edit(
response: ReplyResponse<TNative> | string
): Promise<TMessage>public async followUp(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>protected guardModalSource(): voidprotected remember(created: TMessage): TMessagepublic async reply(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>public async send(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>protected serialize(
response: ReplyResponse<TNative> | string
): SerializedReply<TNative>public async update(
response: ReplyResponse<TNative> | string
): Promise<TMessage>protected abstract async writeEditOriginal(
response: ReplyResponse<TNative> | string
): Promise<TMessage>protected abstract async writeEditTarget(
targetId: string,
response: ReplyResponse<TNative> | string
): Promise<TMessage>protected abstract async writeFollowUp(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>protected abstract async writeModal(
data: APIModalInteractionResponseCallbackData
): Promise<void>protected abstract async writeReply(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage | undefined>protected abstract async writeUpdate(
response: ReplyResponse<TNative> | string
): Promise<TMessage | undefined>