export Class
ChatAdministratorRights ​
extends ​
Builder
Constructor ​
ts
new ChatAdministratorRights( ...rights )
Parameter | Type | Description |
---|---|---|
...rights | AdministratorRight[] | The required administrator rights of the user in the chat. |
Methods ​
set( right, allowed ) ​
Parameter | Type | Description |
---|---|---|
right | AdministratorRight | The right to set. |
allowed = true | boolean | Wether to set to true to allow permission or not. |
Set a right.
Returns:
ChatAdministratorRights