Method GetEntitlementsAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetEntitlementsAsync(ulong?, ulong?)
Gets the applications entitlements.
[RequiresFeature(Features.MonetizedApplication)]
public Task<IReadOnlyList<DiscordEntitlement>> GetEntitlementsAsync(ulong? guildId = null, ulong? userId = null)
Parameters
guildId
ulong?Filter returned entitlements to a specific guild id.
userId
ulong?Filter returned entitlements to a specific user id.
Returns
- Task<IReadOnlyList<DiscordEntitlement>>
A list of DiscordEntitlement.
Exceptions
- NotFoundException
Thrown when the entitlements do not exist.