Table of Contents
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

userId ulong

The user id to remove.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

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

user DiscordUser

The user to remove.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

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.