Table of Contents

Method RemoveTargetUserAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

RemoveTargetUserAsync(ulong)

Removes a target user from an existing invite.

public Task RemoveTargetUserAsync(ulong userId)

Parameters

userId ulong

The ID of the target user to remove from the invite.

Returns

Task

Exceptions

UnauthorizedException

Thrown when the client is not the creator of the invite and does not have the ManageGuild permission.