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