Skip to content

Commit 4c6b571

Browse files
authored
Added invite type (#6568)
1 parent db3c57a commit 4c6b571

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/resources/Invite.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Represents a code that when used, adds a user to a guild or group DM channel.
88

99
| Field | Type | Description |
1010
|-----------------------------|----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
11+
| type | integer | the [type of invite](#DOCS_RESOURCES_INVITE/invite-object-invite-types) |
1112
| code | string | the invite code (unique ID) |
1213
| guild? | partial [guild](#DOCS_RESOURCES_GUILD/guild-object) object | the guild this invite is for |
1314
| channel | ?partial [channel](#DOCS_RESOURCES_CHANNEL/channel-object) object | the channel this invite is for |
@@ -21,6 +22,14 @@ Represents a code that when used, adds a user to a guild or group DM channel.
2122
| stage_instance? | [invite stage instance](#DOCS_RESOURCES_INVITE/invite-stage-instance-object) object | stage instance data if there is a [public Stage instance](#DOCS_RESOURCES_STAGE_INSTANCE) in the Stage channel this invite is for (deprecated) |
2223
| guild_scheduled_event? | [guild scheduled event](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object) object | guild scheduled event data, only included if `guild_scheduled_event_id` contains a valid guild scheduled event id |
2324

25+
###### Invite Types
26+
27+
| Type | Value |
28+
|----------|-------|
29+
| GUILD | 0 |
30+
| GROUP_DM | 1 |
31+
| FRIEND | 2 |
32+
2433
###### Invite Target Types
2534

2635
| Type | Value |
@@ -32,6 +41,7 @@ Represents a code that when used, adds a user to a guild or group DM channel.
3241

3342
```json
3443
{
44+
"type": 0,
3545
"code": "0vCdhLbwjZZTWZLD",
3646
"guild": {
3747
"id": "165176875973476352",

0 commit comments

Comments
 (0)