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>

Defined in

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