Struct Overwrite
Represent a permission object.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public struct Overwrite
Constructors
| Improve this Doc View SourceOverwrite(UInt64, PermissionTarget, OverwritePermissions)
Initializes a new Overwrite with provided target information and modified permissions.
Declaration
public Overwrite(ulong targetId, PermissionTarget targetType, OverwritePermissions permissions)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | targetId | |
PermissionTarget | targetType | |
OverwritePermissions | permissions |
Properties
| Improve this Doc View SourcePermissions
Gets the permissions associated with this overwrite entry.
Declaration
public readonly OverwritePermissions Permissions { get; }
Property Value
Type | Description |
---|---|
OverwritePermissions |
TargetId
Gets the unique identifier for the object this overwrite is targeting.
Declaration
public readonly ulong TargetId { get; }
Property Value
Type | Description |
---|---|
UInt64 |
TargetType
Gets the type of object this overwrite is targeting.
Declaration
public readonly PermissionTarget TargetType { get; }
Property Value
Type | Description |
---|---|
PermissionTarget |