# Get Channel Permissions

> Get the permissions a member or role has in a channel, after the channel's overrides. A member's permissions combine all of their roles and overrides. A role's permissions combine that role with @everyone only. Threads use their parent channel's overrides.

- ID: `get_channel_permissions`
- Type: Block
- Category: [Channels](https://inventor.bot/docs/reference/blocks/channels.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `target_type` | yes | Whether to get the permissions of a member or a role. | `"Member"`, `"Role"` |
| `channel_id` | yes | ID of the channel to get permissions in. |  |
| `user_or_role_id` | yes | The member's user ID or the role ID. |  |
| `require_access` |  | When true (the default), a member or role that can't view the channel gets no permissions in it, and one that can't connect to a voice or stage channel gets no voice permissions. Bots are never affected. | `"true"`, `"false"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `permissions` | Permission bitset. Use Check Permission to test it for a permission. | e.g. `"104188992"` |

**Example**

```go
channelPermissions := get_channel_permissions(Args{
	target_type:     "Member",
	channel_id:      trigger.channel_id,
	user_or_role_id: "...",
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Permissions: " + channelPermissions.permissions,
})
```