Table of Contents

Method GetTargetUsersAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetTargetUsersAsync(CancellationToken)

Gets the target users allowed to accept an invite.

public Task<IReadOnlyList<ulong>> GetTargetUsersAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyList<ulong>>

An allowlist of user ids.

Exceptions

NotFoundException

Thrown when the invite does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.