Skip to content

Commit 35867c1

Browse files
authored
feat: Update invite types (#1365)
1 parent 8eb66a1 commit 35867c1

File tree

8 files changed

+28
-16
lines changed

8 files changed

+28
-16
lines changed

deno/gateway/v10.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/gateway/v9.ts

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v10/invite.ts

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/invite.ts

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gateway/v10.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,10 @@ export interface GatewayInviteCreateDispatchData {
15601560
* How many times the invite has been used (always will be `0`)
15611561
*/
15621562
uses: 0;
1563+
/**
1564+
* The expiration date of this invite.
1565+
*/
1566+
expires_at: string | null;
15631567
}
15641568

15651569
/**

gateway/v9.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,10 @@ export interface GatewayInviteCreateDispatchData {
15591559
* How many times the invite has been used (always will be `0`)
15601560
*/
15611561
uses: 0;
1562+
/**
1563+
* The expiration date of this invite.
1564+
*/
1565+
expires_at: string | null;
15621566
}
15631567

15641568
/**

payloads/v10/invite.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { APIApplication } from './application';
66
import type { APIInviteChannel } from './channel';
77
import type { APIGuild } from './guild';
88
import type { APIGuildScheduledEvent } from './guildScheduledEvent';
9-
import type { APIInviteStageInstance } from './stageInstance';
109
import type { APIUser } from './user';
1110

1211
export type APIInviteGuild = Pick<
@@ -83,10 +82,10 @@ export interface APIInvite {
8382
/**
8483
* The stage instance data if there is a public stage instance in the stage channel this invite is for
8584
*
86-
* @deprecated
87-
* {@link https://github.com/discord/discord-api-docs/pull/4479 | discord-api-docs#4479}
85+
* @deprecated This has been removed from the documentation.
86+
* {@link https://github.com/discord/discord-api-docs/pull/7779 | discord-api-docs#7779}
8887
*/
89-
stage_instance?: APIInviteStageInstance;
88+
stage_instance?: never;
9089
/**
9190
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
9291
*/

payloads/v9/invite.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { APIApplication } from './application';
66
import type { APIInviteChannel } from './channel';
77
import type { APIGuild } from './guild';
88
import type { APIGuildScheduledEvent } from './guildScheduledEvent';
9-
import type { APIInviteStageInstance } from './stageInstance';
109
import type { APIUser } from './user';
1110

1211
export type APIInviteGuild = Pick<
@@ -83,10 +82,10 @@ export interface APIInvite {
8382
/**
8483
* The stage instance data if there is a public stage instance in the stage channel this invite is for
8584
*
86-
* @deprecated
87-
* {@link https://github.com/discord/discord-api-docs/pull/4479 | discord-api-docs#4479}
85+
* @deprecated This has been removed from the documentation.
86+
* {@link https://github.com/discord/discord-api-docs/pull/7779 | discord-api-docs#7779}
8887
*/
89-
stage_instance?: APIInviteStageInstance;
88+
stage_instance?: never;
9089
/**
9190
* The guild scheduled event data, returned from the `GET /invites/<code>` endpoint when `guild_scheduled_event_id` is a valid guild scheduled event id
9291
*/

0 commit comments

Comments
 (0)