Method GetSkuSubscriptionsAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetSkuSubscriptionsAsync(ulong, ulong, ulong?, ulong?, int)
Gets the subscriptions of an sku.
[RequiresFeature(Features.MonetizedApplication)]
public Task<IReadOnlyList<DiscordSubscription>> GetSkuSubscriptionsAsync(ulong skuId, ulong userId, ulong? before = null, ulong? after = null, int limit = 100)
Parameters
skuIdulongThe sku id to fetch the subscriptions for.
userIdulongThe user ID for which to return subscriptions. Required except for OAuth queries.
beforeulong?List subscriptions before this ID.
afterulong?List subscriptions after this ID.
limitintNumber of results to return (1-100).
Returns
- Task<IReadOnlyList<DiscordSubscription>>
A list of DiscordSubscription.
Exceptions
- NotFoundException
Thrown when the subscriptions do not exist.