Table of Contents

Method AddTargetUserAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddTargetUserAsync(ulong)

Adds a target user to an existing invite.

public Task AddTargetUserAsync(ulong userId)

Parameters

userId ulong

The ID of the user to add as a target user to the invite.

Returns

Task

Exceptions

UnauthorizedException

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