Table of Contents

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

applicationId ulong

Application ID to look up entitlements for

userId ulong?

User ID to look up entitlements for

skuIds IEnumerable<ulong>

Optional list of SKU IDs to check entitlements for

before ulong?

Retrieve entitlements before this entitlement ID

after ulong?

Retrieve entitlements after this entitlement ID

guildId ulong?

Guild ID to look up entitlements for

excludeEnded bool?

Whether or not ended entitlements should be omitted

limit int?

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)