Table of Contents

Method GetInviteTargetUsersAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetInviteTargetUsersAsync(string)

Gets the target users allowed to accept an invite.

public Task<IReadOnlyList<ulong>> GetInviteTargetUsersAsync(string inviteCode)

Parameters

inviteCode string

The invite code.

Returns

Task<IReadOnlyList<ulong>>

An allowlist of user ids.

Exceptions

NotFoundException

Thrown when the invite does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.