API reference
Method RemoveTargetUserAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
RemoveTargetUserAsync(ulong, CancellationToken)
Removes a target user from an existing invite.
public Task RemoveTargetUserAsync(ulong userId, CancellationToken cancellationToken = default)
Parameters
userIdulongThe user id to remove.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
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.
RemoveTargetUserAsync(DiscordUser, CancellationToken)
Removes a target user from an existing invite.
public Task RemoveTargetUserAsync(DiscordUser user, CancellationToken cancellationToken = default)
Parameters
userDiscordUserThe user to remove.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
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.