Skip to content

Function: expandServerPermissions() ​

ts
function expandServerPermissions(mask): bigint;

Defined in: permissions.ts:43

What a server mask actually grants: server_admin grants every permission, and a superseded coarse bit grants the fine-grained ones it was split into. The reverse holds too - all of the fine-grained bits together count as the coarse one - so code that still asks for manage_channels gets an answer that matches what the member can do.

Parameters ​

ParameterType
maskbigint

Returns ​

bigint

Released under the GNU Affero General Public License v3.0.