From e428c7590f90afab13ebbdda9edae5e27d5223f6 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Tue, 12 Aug 2025 15:41:50 +0400 Subject: [PATCH] refactor(APIInvite): `expires_at` always present (#1328) --- deno/payloads/v10/invite.ts | 4 ++-- deno/payloads/v9/invite.ts | 4 ++-- payloads/v10/invite.ts | 4 ++-- payloads/v9/invite.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/invite.ts b/deno/payloads/v10/invite.ts index 3b4168cd..50855204 100644 --- a/deno/payloads/v10/invite.ts +++ b/deno/payloads/v10/invite.ts @@ -77,9 +77,9 @@ export interface APIInvite { */ approximate_member_count?: number; /** - * The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` + * The expiration date of this invite */ - expires_at?: string | null; + expires_at: string | null; /** * The stage instance data if there is a public stage instance in the stage channel this invite is for * diff --git a/deno/payloads/v9/invite.ts b/deno/payloads/v9/invite.ts index 3b4168cd..50855204 100644 --- a/deno/payloads/v9/invite.ts +++ b/deno/payloads/v9/invite.ts @@ -77,9 +77,9 @@ export interface APIInvite { */ approximate_member_count?: number; /** - * The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` + * The expiration date of this invite */ - expires_at?: string | null; + expires_at: string | null; /** * The stage instance data if there is a public stage instance in the stage channel this invite is for * diff --git a/payloads/v10/invite.ts b/payloads/v10/invite.ts index a6d27ee4..1e9256fa 100644 --- a/payloads/v10/invite.ts +++ b/payloads/v10/invite.ts @@ -77,9 +77,9 @@ export interface APIInvite { */ approximate_member_count?: number; /** - * The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` + * The expiration date of this invite */ - expires_at?: string | null; + expires_at: string | null; /** * The stage instance data if there is a public stage instance in the stage channel this invite is for * diff --git a/payloads/v9/invite.ts b/payloads/v9/invite.ts index a6d27ee4..1e9256fa 100644 --- a/payloads/v9/invite.ts +++ b/payloads/v9/invite.ts @@ -77,9 +77,9 @@ export interface APIInvite { */ approximate_member_count?: number; /** - * The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` + * The expiration date of this invite */ - expires_at?: string | null; + expires_at: string | null; /** * The stage instance data if there is a public stage instance in the stage channel this invite is for *