API reference
Method RemoveTargetUsersAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
RemoveTargetUsersAsync(IEnumerable<ulong>, CancellationToken)
Removes multiple target users from an existing invite.
public Task RemoveTargetUsersAsync(IEnumerable<ulong> targetUserIds, CancellationToken cancellationToken = default)
Parameters
targetUserIdsIEnumerable<ulong>The user ids to remove.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- ArgumentException
Thrown when no valid users are provided or more than 1,000 distinct users are provided.
- 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.
RemoveTargetUsersAsync(IEnumerable<DiscordUser>, CancellationToken)
Removes multiple target users from an existing invite.
public Task RemoveTargetUsersAsync(IEnumerable<DiscordUser> targetUsers, CancellationToken cancellationToken = default)
Parameters
targetUsersIEnumerable<DiscordUser>The users to remove.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- ArgumentException
Thrown when no valid users are provided or more than 1,000 distinct users are provided.
- 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.