feat(APIInvite): add expires_at field and with_expiration param (#127)

This commit is contained in:
Advaith
2021-04-30 09:32:24 -07:00
committed by GitHub
parent 91afb0bb49
commit 82ca0ce5c4
4 changed files with 16 additions and 0 deletions

View File

@@ -59,6 +59,10 @@ export interface APIInvite {
* Approximate count of total members, returned from the `GET /invites/<code>` endpoint when `with_counts` is `true`
*/
approximate_member_count?: number;
/**
* The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true`
*/
expires_at?: string;
}
/**

View File

@@ -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;

View File

@@ -59,6 +59,10 @@ export interface APIInvite {
* Approximate count of total members, returned from the `GET /invites/<code>` endpoint when `with_counts` is `true`
*/
approximate_member_count?: number;
/**
* The expiration date of this invite, returned from the `GET /invites/<code>` endpoint when `with_expiration` is `true`
*/
expires_at?: string;
}
/**

View File

@@ -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;