Classseedcordv0.13.0
ReplySender
Sends a ReplyResponseReplyResponse to an interaction, picking reply, editReply, or followUp from the live acknowledgement state. Logs and drops its own send failures so a dead token never escapes into the controller.
class ReplySenderclass ReplySenderMember visibility
Filter class members by access level.
ReplySender(interaction: Repliables)ReplySender(interaction: Repliables)Edits an already-sent message to a new ReplyResponseReplyResponse. Used to swap a confirmation prompt for its outcome. Never throws, a failed edit is logged and dropped.
public async edit(
message: Message,
response: ReplyResponse
): Promise<void>public async edit(
message: Message,
response: ReplyResponse
): Promise<void>Parameter:
messageThe message to edit (the handle a prior sendsend returned).
Parameter:
responseThe reply to replace it with.
public async send(
response: ReplyResponse,
ephemeral?: boolean
): Promise<Message | undefined>public async send(
response: ReplyResponse,
ephemeral?: boolean
): Promise<Message | undefined>Parameter:
responseThe ComponentsV2 reply to show.
Parameter:
ephemeral (Default: truetrue)Whether the reply is ephemeral.