MadelineProtoDocs/old_docs/API_docs_v103/constructors/channelAdminLogEventActionDefaultBannedRights.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2019-08-15 20:25:16 +02:00
---
title: channelAdminLogEventActionDefaultBannedRights
description: Changed global chat rights
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionDefaultBannedRights
[Back to constructors index](index.md)
Changed global chat rights
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|prev\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|Previous Banned rights of current user|
|new\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|New Banned rights of current user|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
### Example:
```php
$channelAdminLogEventActionDefaultBannedRights = ['_' => 'channelAdminLogEventActionDefaultBannedRights', 'prev_banned_rights' => ChatBannedRights, 'new_banned_rights' => ChatBannedRights];
```
Or, if you're into Lua:
```lua
channelAdminLogEventActionDefaultBannedRights={_='channelAdminLogEventActionDefaultBannedRights', prev_banned_rights=ChatBannedRights, new_banned_rights=ChatBannedRights}
```