Method GetTargetUsersAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetTargetUsersAsync()
Gets the users allowed to accept this invite.
public Task<IReadOnlyList<ulong>> GetTargetUsersAsync()
Returns
- Task<IReadOnlyList<ulong>>
A list of user IDs allowed to accept the invite.
Exceptions
- NotFoundException
Thrown when no target users are set for the invite.
- UnauthorizedException
Thrown when the client is not the inviter and does not have ManageGuild permission or the ViewAuditLog permission.