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
targetUsersIEnumerable<ulong>A list of user IDs alllowed to accept the invite.
Returns
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.