InvitesAPI
No summary provided.
declare class InvitesAPI declare class InvitesAPI 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<discord_api_types_v10.APIInvite>
Fetches an invite
| Name | Type | Optional | Description |
|---|---|---|---|
| code | string | No | The invite code |
| options | RESTGetAPIInviteQuery | Yes | None |