LogoRobo.js
Packages@robojs/discordjs

validateIntents()

Function: validateIntents()

function validateIntents(configuredIntents, eventNames): {
  missing: string[];
  suggestions: string[];
  valid: boolean;
}

Validate that all required intents are present for given events.

Parameters

ParameterTypeDescription
configuredIntentsnumber | bigintBitfield of configured intents
eventNamesstring[]Array of event names

Returns

{
  missing: string[];
  suggestions: string[];
  valid: boolean;
}

Object with validation result and details

NameType
missingstring[]
suggestionsstring[]
validboolean

On this page