Search...

InvitesAPI

export declare class InvitesAPI 
export declare class InvitesAPI 

No summary provided.

constructor(rest)

Constructs a new instance of the InvitesAPI class
NameTypeOptionalDescription
restRESTNoNone

delete(code, { reason, signal }?)

:

Promise<void>

NameTypeOptionalDescription
codestringNoThe invite code
{ reason, signal }Pick<RequestData, 'reason' | 'signal'>YesNone

get(code, query?, { signal }?)

:

Promise<APIInvite>

NameTypeOptionalDescription
codestringNoThe invite code
queryRESTGetAPIInviteQueryYesThe options for fetching the invite
{ signal }Pick<RequestData, 'signal'>YesNone