Class PermissionOverwriteProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class PermissionOverwriteProperties
- Inheritance
-
PermissionOverwriteProperties
- Inherited Members
-
Constructors
PermissionOverwriteProperties(ulong, PermissionOverwriteType)
public PermissionOverwriteProperties(ulong id, PermissionOverwriteType type)
Parameters
id
ulong
type
PermissionOverwriteType
Properties
Allowed
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("allow")]
public Permissions? Allowed { get; set; }
Property Value
- Permissions?
Denied
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("deny")]
public Permissions? Denied { get; set; }
Property Value
- Permissions?
Id
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
- ulong
Type
[JsonPropertyName("type")]
public PermissionOverwriteType Type { get; set; }
Property Value
- PermissionOverwriteType
Methods
WithAllowed(Permissions?)
public PermissionOverwriteProperties WithAllowed(Permissions? allowed)
Parameters
allowed
Permissions?
Returns
- PermissionOverwriteProperties
WithDenied(Permissions?)
public PermissionOverwriteProperties WithDenied(Permissions? denied)
Parameters
denied
Permissions?
Returns
- PermissionOverwriteProperties
WithId(ulong)
public PermissionOverwriteProperties WithId(ulong id)
Parameters
id
ulong
Returns
- PermissionOverwriteProperties
WithType(PermissionOverwriteType)
public PermissionOverwriteProperties WithType(PermissionOverwriteType type)
Parameters
type
PermissionOverwriteType
Returns
- PermissionOverwriteProperties