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
skuId
ulongThe sku id to fetch the subscriptions for.
userId
ulongThe user ID for which to return subscriptions. Required except for OAuth queries.
before
ulong?List subscriptions before this ID.
after
ulong?List subscriptions after this ID.
limit
intNumber of results to return (1-100).
Returns
- Task<IReadOnlyList<DiscordSubscription>>
A list of DiscordSubscription.
Exceptions
- NotFoundException
Thrown when the subscriptions do not exist.