[Feature] Add excludeDeleted argument to GetEntitlementsAsync (#3074)

* add `excludeDeleted` argument

* i love when it still builds locally somehow
This commit is contained in:
Mihail Gribkov
2025-03-02 01:17:08 +03:00
committed by GitHub
parent aa66928c48
commit 9c9407b7f4
7 changed files with 15 additions and 7 deletions

View File

@@ -442,8 +442,8 @@ namespace Discord.WebSocket
/// <inheritdoc cref="IDiscordClient.GetEntitlementsAsync"/>
public IAsyncEnumerable<IReadOnlyCollection<IEntitlement>> GetEntitlementsAsync(int? limit = 100,
ulong? afterId = null, ulong? beforeId = null, bool excludeEnded = false, ulong? guildId = null, ulong? userId = null,
ulong[] skuIds = null, RequestOptions options = null)
=> ClientHelper.ListEntitlementsAsync(this, limit, afterId, beforeId, excludeEnded, guildId, userId, skuIds, options);
ulong[] skuIds = null, RequestOptions options = null, bool? excludeDeleted = null)
=> ClientHelper.ListEntitlementsAsync(this, limit, afterId, beforeId, excludeEnded, guildId, userId, skuIds, excludeDeleted, options);
/// <inheritdoc />
public Task<IReadOnlyCollection<SKU>> GetSKUsAsync(RequestOptions options = null)