Method AddTargetUserAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddTargetUserAsync(ulong)
Adds a target user to an existing invite.
public Task AddTargetUserAsync(ulong userId)
Parameters
userIdulongThe ID of the user to add as a target user to the invite.
Returns
Exceptions
- UnauthorizedException
Thrown when the client is not the creator of the invite and does not have the ManageGuild permission.