Table of Contents

Method UpdateTargetUsersAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

UpdateTargetUsersAsync(IEnumerable<ulong>)

Updates the users allowed to accept this invite.

public Task UpdateTargetUsersAsync(IEnumerable<ulong> targetUsers)

Parameters

targetUsers IEnumerable<ulong>

A list of user IDs alllowed to accept the invite.

Returns

Task

Exceptions

BadRequestException

Thrown when the csv file contains invalid user IDs.

UnauthorizedException

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