Skip to content

Commit 56aa319

Browse files
Remove query param that no longer exists on GET /invites/<code> (#7424)
* remove query param that no longer exists * update description for expires_at * remove ? for optional --------- Co-authored-by: advaith <[email protected]>
1 parent 1cb8c26 commit 56aa319

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/resources/invite.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Represents a code that when used, adds a user to a guild or group DM channel.
2222
| target_application? | partial [application](/docs/resources/application#application-object) object | the embedded application to open for this voice channel embedded application invite |
2323
| approximate_presence_count? | integer | approximate count of online members, returned from the `GET /invites/<code>` endpoint when `with_counts` is `true` |
2424
| approximate_member_count? | integer | approximate count of total members, returned from the `GET /invites/<code>` endpoint when `with_counts` is `true` |
25-
| expires_at? | ?ISO8601 timestamp | the expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true` |
25+
| expires_at | ?ISO8601 timestamp | the expiration date of this invite |
2626
| 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) |
2727
| 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 |
2828
| flags? | integer | [guild invite flags](/docs/resources/invite#invite-object-guild-invite-flags) for guild invites |
@@ -162,7 +162,6 @@ Returns an [invite](/docs/resources/invite#invite-object) object for the given c
162162
| Field | Type | Description |
163163
|---------------------------|--------------------------------------------------|-------------------------------------------------------------|
164164
| with_counts? | [boolean](/docs/reference#boolean-query-strings) | whether the invite should contain approximate member counts |
165-
| with_expiration? | [boolean](/docs/reference#boolean-query-strings) | whether the invite should contain the expiration date |
166165
| guild_scheduled_event_id? | snowflake | the guild scheduled event to include with the invite |
167166

168167
## Delete Invite

0 commit comments

Comments
 (0)