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
inviteCodestringThe invite code.
cancellationTokenCancellationTokenA 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.