LogoRobo.js
Packages@robojs/discordjs

getEffectivePermissions()

Function: getEffectivePermissions()

function getEffectivePermissions(
   permissions, 
   commandKey, 
   guildId?): bigint | null

Get effective permissions for a command in a specific guild.

Parameters

ParameterTypeDescription
permissionsMap<string, AggregatedPermissions>The aggregated permissions map
commandKeystringThe command key
guildId?stringThe guild ID (optional)

Returns

bigint | null

The effective permission bitfield

On this page