LogoRobo.js
Packages@robojs/discordjs

inferIntents()

Function: inferIntents()

function inferIntents(eventNames): Set<GatewayIntentBits>

Infer required intents from a list of event names. Useful at build time for generating suggestions.

Parameters

ParameterTypeDescription
eventNamesstring[]Array of event names

Returns

Set<GatewayIntentBits>

Set of required GatewayIntentBits

On this page