export declare class InvitesAPI
export declare class InvitesAPI
No summary provided.
constructor(rest)
Constructs a new instance of the
InvitesAPI
className | Type | Optional | Description |
---|---|---|---|
rest | REST | No | None |
delete(code, { reason, signal }?)
:
Promise<void>
Deletes an invite
Name | Type | Optional | Description |
---|---|---|---|
code | string | No | The invite code |
{ reason, signal } | Pick<RequestData, 'reason' | 'signal'> | Yes | None |
get(code, query?, { signal }?)
:
Promise<APIInvite>
Fetches an invite
Name | Type | Optional | Description |
---|---|---|---|
code | string | No | The invite code |
query | RESTGetAPIInviteQuery | Yes | The options to use when fetching the invite |
{ signal } | Pick<RequestData, 'signal'> | Yes | None |