diff --git a/deno/payloads/v8/invite.ts b/deno/payloads/v8/invite.ts index ffc10d7c..d77cc054 100644 --- a/deno/payloads/v8/invite.ts +++ b/deno/payloads/v8/invite.ts @@ -59,6 +59,10 @@ export interface APIInvite { * Approximate count of total members, returned from the `GET /invites/` endpoint when `with_counts` is `true` */ approximate_member_count?: number; + /** + * The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` + */ + expires_at?: string; } /** diff --git a/deno/rest/v8/invite.ts b/deno/rest/v8/invite.ts index 063c7758..9c24ccf4 100644 --- a/deno/rest/v8/invite.ts +++ b/deno/rest/v8/invite.ts @@ -8,6 +8,10 @@ export interface RESTGetAPIInviteQuery { * Whether the invite should contain approximate member counts */ with_counts?: boolean; + /** + * Whether the invite should contain the expiration date + */ + with_expiration?: boolean; } export type RESTGetAPIInviteResult = APIInvite; diff --git a/payloads/v8/invite.ts b/payloads/v8/invite.ts index c9fc5dd3..afdbd5ce 100644 --- a/payloads/v8/invite.ts +++ b/payloads/v8/invite.ts @@ -59,6 +59,10 @@ export interface APIInvite { * Approximate count of total members, returned from the `GET /invites/` endpoint when `with_counts` is `true` */ approximate_member_count?: number; + /** + * The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true` + */ + expires_at?: string; } /** diff --git a/rest/v8/invite.ts b/rest/v8/invite.ts index 734dfecc..a0680ec2 100644 --- a/rest/v8/invite.ts +++ b/rest/v8/invite.ts @@ -8,6 +8,10 @@ export interface RESTGetAPIInviteQuery { * Whether the invite should contain approximate member counts */ with_counts?: boolean; + /** + * Whether the invite should contain the expiration date + */ + with_expiration?: boolean; } export type RESTGetAPIInviteResult = APIInvite;