Table of Contents

Method GetInviteTargetUsersJobStatusAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetInviteTargetUsersJobStatusAsync(string, CancellationToken)

Gets the invite target users job status.

public Task<DiscordInviteTargetUsersJobStatus> GetInviteTargetUsersJobStatusAsync(string inviteCode, CancellationToken cancellationToken = default)

Parameters

inviteCode string

The invite code.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordInviteTargetUsersJobStatus>

The job status.

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.