Method GetExceptionUsersAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetExceptionUsersAsync(ulong, int?, ulong?, ulong?, bool?, CancellationToken)
Gets users subscribed to a specific exception.
public Task<IReadOnlyDictionary<ulong, DiscordScheduledEventUser>> GetExceptionUsersAsync(ulong exceptionId, int? limit = null, ulong? before = null, ulong? after = null, bool? withMember = null, CancellationToken cancellationToken = default)
Parameters
exceptionIdulongThe exception id.
limitint?The maximum number of users to return.
beforeulong?Get users before this user id.
afterulong?Get users after this user id.
withMemberbool?Whether to include guild member data.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<IReadOnlyDictionary<ulong, DiscordScheduledEventUser>>
A map of subscribed users by user id.
Exceptions
- NotFoundException
Thrown when the event exception does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.