Table of Contents

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

exceptionId ulong

The exception id.

limit int?

The maximum number of users to return.

before ulong?

Get users before this user id.

after ulong?

Get users after this user id.

withMember bool?

Whether to include guild member data.

cancellationToken CancellationToken

A 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.