Classgatewayv0.11.0
class ReplySender extends BaseReplySender<
SentMessage,
GatewayFile
>Member visibility
Filter class members by access level.
ReplySender(
interaction: Repliables,
dispatch: DispatchContext,
bus: Bus,
isEphemeralByDefault: boolean
)Showing members with Protected visibility and higher.
Properties
Methods
routeId
protected routeId: stringInherited from:BaseReplySender
defer()
Inherited from:BaseReplySender
deferUpdate()
Inherited from:BaseReplySender
delete()
Inherited from:BaseReplySender
protected describeFile(
file: ReplyFile | GatewayFile
): SentFileedit()
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 override guardModalSource(): voidremember()
protected remember(created: TMessage): TMessageInherited from:BaseReplySender
reply()
async reply(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>Inherited from:BaseReplySender
async send(
response: ReplyResponse<TNative> | string,
opts?: SendOpts
): Promise<TMessage>Inherited from:BaseReplySender
showModal()
Must be the initial response.
Inherited from:BaseReplySender
update()
After a deferUpdate the state is still 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(
reply: GatewayReply
): Promise<SentMessage>protected async writeEditTarget(
targetId: string,
reply: GatewayReply
): Promise<SentMessage>protected async writeFollowUp(
reply: GatewayReply,
flags: number
): Promise<SentMessage>protected async writeModal(
data: APIModalInteractionResponseCallbackData
): Promise<void>protected async writeReply(
reply: GatewayReply,
flags: number
): Promise<SentMessage | undefined>protected async writeUpdate(
reply: GatewayReply
): Promise<SentMessage | undefined>