# DiscordPermissionOverwrite

Namespace: Discord

## Properties

| Name  | Description                                                       | Type                    |
| ----- | ----------------------------------------------------------------- | ----------------------- |
| Id    | The user/role ID                                                  | ulong                   |
| Type  | The type of permission overwrite                                  | PermissionOverwriteType |
| Deny  | A set of permissions that will be removed from the affected users | DiscordPermission       |
| Allow | A set of permissions that will be added to the affected users     | DiscordPermission       |

## Methods

### GetPermissionState

Gets the state of a permission (deny/inherit/allow).

#### Parameters

| Name       | Description                 | Type              |
| ---------- | --------------------------- | ----------------- |
| permission | The permission to check for | DiscordPermission |

#### Returns

{% content-ref url="overwrittenpermissionstate" %}
[overwrittenpermissionstate](overwrittenpermissionstate)
{% endcontent-ref %}
