LogoRobo.js
Packages@robojs/discordjs

handleInteraction()

Function: handleInteraction()

function handleInteraction(
   interaction, 
   type, 
key): Promise<void>

Handle an incoming Discord interaction

Parameters

ParameterTypeDescription
interactionInteractionThe Discord interaction
typeInteractionTypeThe type of interaction
keystringThe command/context key

Returns

Promise<void>

On this page