Method GetInviteTargetUsersAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetInviteTargetUsersAsync(string, CancellationToken)
Gets the target users allowed to accept an invite.
public Task<IReadOnlyList<ulong>> GetInviteTargetUsersAsync(string inviteCode, CancellationToken cancellationToken = default)
Parameters
inviteCodestringThe invite code.
cancellationTokenCancellationTokenA 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.