Skip to content

Permission

Implementation of the Discord Permissions in Luau

https://discord.com/developers/docs/topics/permissions

Permission.permission  :: number

The permission bitfield representing the permissions granted.

Permission : hasPermission ( permission )  -> ()

Responsible for querying what permission a discord permission bitflag has.

Parameters

permission: Permissions
Permission : toList ( )  -> { Permissions }

Generates an array of permissions that are apart of this bitflag.

Returns

Permissions }
Permission . new ( permission )  -> Permission

Responsible for constructing this class.

Parameters

permission: string

Returns

Permission