export Class
ChatPermissions ​
extends ​
Builder
Constructor ​
ts
new ChatPermissions( ...permissions )
Parameter | Type | Description |
---|---|---|
...permissions | Permission[] | The permissions a non-adminstrator user is allowed. |
Methods ​
set( permission, allowed ) ​
Parameter | Type | Description |
---|---|---|
permission | Permission | The permission to set. |
allowed = true | boolean | Wether to set to true to allow permission or not. |
Set a permission.
Returns:
ChatPermissions