Table of Contents

Method BeginGuildPruneAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

BeginGuildPruneAsync(ulong, int, bool, IEnumerable<ulong>, string)

Begins a guild prune.

public Task<int?> BeginGuildPruneAsync(ulong guildId, int days, bool computePruneCount, IEnumerable<ulong> includeRoles, string reason)

Parameters

guildId ulong

Guild ID

days int

Days to prune for

computePruneCount bool

Whether to return the prune count after this method completes. This is discouraged for larger guilds.

includeRoles IEnumerable<ulong>

The roles to be included in the prune.

reason string

Reason why this guild was pruned

Returns

Task<int?>