export declare class InvitesAPI export declare class InvitesAPI No summary provided.
constructor(rest)
Constructs a new instance of the
InvitesAPI class| Name | Type | Optional | Description |
|---|---|---|---|
| rest | REST | No | None |
delete(code, reason?)
:
Promise<void>
Deletes an invite
| Name | Type | Optional | Description |
|---|---|---|---|
| code | string | No | The invite code |
| reason | string | Yes | The reason for deleting the invite |
get(code, options?)
:
Promise<import("discord-api-types/v10").APIInvite>
Fetches an invite
| Name | Type | Optional | Description |
|---|---|---|---|
| code | string | No | The invite code |
| options | RESTGetAPIInviteQuery | Yes | None |