Table of Contents

Method BulkAddTargetUsersAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

BulkAddTargetUsersAsync(IEnumerable<ulong>)

Adds multiple target users to an existing invite.

public Task BulkAddTargetUsersAsync(IEnumerable<ulong> userIds)

Parameters

userIds IEnumerable<ulong>

The IDs of the users to add to the invite target users.

Returns

Task

Remarks

A maximum of 1000 users can be added in a single request.

Exceptions

UnauthorizedException

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