Packages@robojs/discordjs
handleInteraction()
Function: handleInteraction()
function handleInteraction(
interaction,
type,
key): Promise<void>Handle an incoming Discord interaction
Parameters
| Parameter | Type | Description |
|---|---|---|
interaction | Interaction | The Discord interaction |
type | InteractionType | The type of interaction |
key | string | The command/context key |
Returns
Promise<void>
