Class GuildPruneProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class GuildPruneProperties
- Inheritance
-
GuildPruneProperties
- Inherited Members
-
Constructors
GuildPruneProperties(int)
public GuildPruneProperties(int days)
Parameters
days
int
Properties
ComputePruneCount
[JsonPropertyName("compute_prune_count")]
public bool ComputePruneCount { get; set; }
Property Value
- bool
Days
[JsonPropertyName("days")]
public int Days { get; set; }
Property Value
- int
Roles
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("include_roles")]
public IEnumerable<ulong>? Roles { get; set; }
Property Value
- IEnumerable<ulong>
Methods
AddRoles(IEnumerable<ulong>)
public GuildPruneProperties AddRoles(IEnumerable<ulong> roles)
Parameters
roles
IEnumerable<ulong>
Returns
- GuildPruneProperties
AddRoles(params ulong[])
public GuildPruneProperties AddRoles(params ulong[] roles)
Parameters
roles
ulong[]
Returns
- GuildPruneProperties
WithComputePruneCount(bool)
public GuildPruneProperties WithComputePruneCount(bool computePruneCount = true)
Parameters
computePruneCount
bool
Returns
- GuildPruneProperties
WithDays(int)
public GuildPruneProperties WithDays(int days)
Parameters
days
int
Returns
- GuildPruneProperties
WithRoles(IEnumerable<ulong>?)
public GuildPruneProperties WithRoles(IEnumerable<ulong>? roles)
Parameters
roles
IEnumerable<ulong>
Returns
- GuildPruneProperties