Method ListEntitlementsAsync
- Namespace
- DSharpPlus.Net
- Assembly
- DSharpPlus.dll
ListEntitlementsAsync(ulong, ulong?, IEnumerable<ulong>?, ulong?, ulong?, ulong?, bool?, int?)
Returns all entitlements for a given app.
public ValueTask<IReadOnlyList<DiscordEntitlement>> ListEntitlementsAsync(ulong applicationId, ulong? userId = null, IEnumerable<ulong>? skuIds = null, ulong? before = null, ulong? after = null, ulong? guildId = null, bool? excludeEnded = null, int? limit = 100)
Parameters
applicationIdulongApplication ID to look up entitlements for
userIdulong?User ID to look up entitlements for
skuIdsIEnumerable<ulong>Optional list of SKU IDs to check entitlements for
beforeulong?Retrieve entitlements before this entitlement ID
afterulong?Retrieve entitlements after this entitlement ID
guildIdulong?Guild ID to look up entitlements for
excludeEndedbool?Whether or not ended entitlements should be omitted
limitint?Number of entitlements to return, 1-100, default 100
Returns
- ValueTask<IReadOnlyList<DiscordEntitlement>>
Returns the list of entitlments. Sorted by id descending (depending on discord)