Skip to main content

Function: safelyReplyToInteraction()

safelyReplyToInteraction<T>(parameters: SafeReplyToInteractionParameters<T>): Promise<void>

Safely replies to a message or interaction. This is primarily to save duplicated code in the main PaginatedMessage class

Type parameters

Type parameter
T extends "edit" | "reply"

Parameters

ParameterTypeDescription
parametersSafeReplyToInteractionParameters<T>The parameters to create a safe reply to interaction parameters

Returns

Promise<void>

Source

projects/utilities/packages/discord.js-utilities/src/lib/PaginatedMessages/utils.ts:227