From 4a6e1e46069f526ff4ac16b945d5b9340a500ad2 Mon Sep 17 00:00:00 2001 From: keenkairos <83495194+keenkairos@users.noreply.github.com> Date: Sat, 1 May 2021 14:20:51 +0400 Subject: [PATCH] feat(types): add expiresAt field to Invite interface (#880) Reference: https://github.com/discord/discord-api-docs/commit/6dc1b2a3e7aad5145420f965e3ec15f3b7ed7074 --- src/types/invites/invite.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/types/invites/invite.ts b/src/types/invites/invite.ts index f06dcb266..1b82079f3 100644 --- a/src/types/invites/invite.ts +++ b/src/types/invites/invite.ts @@ -24,4 +24,6 @@ export interface Invite { approximatePresenceCount?: number; /** Approximate count of total members */ approximateMemberCount?: number; + /** The expiration date of this invite, returned from the `GET /invites/` endpoint when `with_expiration` is `true`. */ + expiresAt?: string | null; }