Permission
Implementation of discords Permissions as a Luau builder.
https://discord.com/developers/docs/topics/permissions#permissions
Properties
The Permission instance has no set properties!
Methods
The Permission instance has no set methods!
Functions
setPermissionBitflag
Permission . setPermissionBitflag () -> ()
self: Permission
bitflag: string | number
Sets the bitflag for this builder.
addPermission
Permission . addPermission () -> ()
self: Permission
permission: apiTypes.Permissions
Adds a specific permission to this permissions builder.
removePermission
Permission . removePermission () -> ()
self: Permission
permission: apiTypes.Permissions
Removes a specific permission from this permissions builder.
build
Permission . build () -> ()
self: Permission
Returns the bitflag representation of the permission.
new
Permission . new () -> ()
resource: { bitflag: (string | number)?, }?
Responsible for creating a new Permission.
fromPermissions
Enables you to create a permission builder from a list of permissions.